---
title: Azure Prometheus monitoring
slug: azure-prometheus-monitoring
docTags: 
createdAt: 2026-05-28T13:01:34.932Z
---

Effective monitoring tools like **Azure Prometheus** are indispensable in today's dynamic cloud ecosystem. Azure integrates flawlessly with Prometheus; setting it up has never been easier. Let's dive right in and set you up with Prometheus on your Azure cluster.

# Establishing a connection with Azure Cluster

- Log in into your Azure environment using either the Azure Shell or Azure CLI.
- To effectively manage your cluster resources via Azure Shell, take a look at this step-by-step guide: [Azure Cloud Shell Overview](https://docs.microsoft.com/en-us/azure/cloud-shell/overview).

# Prep your environment with Azure CLI

- Begin by installing the Azure CLI. Here's a quick [installation guide](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli) to get you started.
- Fire up the command line and execute `az login` to access your Azure account.
- If you don't have `kubectl` already, use the command `az aks install-cli` to get it locally.
- Next, set up kubectl to interact seamlessly with your Kubernetes cluster using this command: `az aks get-credentials --resource-group myResourceGroup --name myAKSCluster`. This ensures your CLI is synced with your cluster credentials.

# Activating Prometheus on Azure

- Begin by installing the Helm package manager for Kubernetes, the backbone for managing Azure Prometheus.
- Define the helm repo with this: `helm repo add prometheus-community https://prometheus-community.github.io/helm-charts`.
- Refresh with `helm repo update`.
- For organized management, carve out a new namespace for Azure Prometheus using `kubectl create namespace`. In this example, we've named it **monitoring**.
- Integrate Prometheus using: `helm install prometheus prometheus-community/prometheus --namespace monitoring --set alertmanager.persistentVolume.storageClass="default" --set server.persistentVolume.storageClass="default"`.
- To get a live view of your Azure Prometheus dashboard within Azure, utilize port forwarding: `kubectl port-forward -n monitoring prometheusPodName 9090`.
