Skip to content

Commit fccd334

Browse files
Merge pull request #266243 from austonli/patch-43
Adding note for clusters with existing Prometheus addon
2 parents 9f05004 + b06fa6a commit fccd334

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/aks/monitor-control-plane-metrics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ az provider register --namespace "Microsoft.ContainerService"
6464

6565
You can enable control plane metrics with the Azure Monitor managed service for Prometheus add-on during cluster creation or for an existing cluster. To collect Prometheus metrics from your Kubernetes cluster, see [Enable Prometheus and Grafana for Kubernetes clusters][enable-monitoring-kubernetes-cluster] and follow the steps on the **CLI** tab for an AKS cluster. On the command-line, be sure to include the parameters `--generate-ssh-keys` and `--enable-managed-identity`.
6666

67+
If your cluster already has the Prometheus addon deployed, then you can simply run an `az aks update` to ensure the cluster updates to start collecting control plane metrics.
68+
69+
```azurecli
70+
az aks update -n <cluster-name> -g <resource-group>
71+
```
72+
6773
>[!NOTE]
6874
> Unlike the metrics collected from cluster nodes, control plane metrics are collected by a component which isn't part of the **ama-metrics** add-on. Enabling the `AzureMonitorMetricsControlPlanePreview` feature flag and the managed prometheus add-on ensures control plane metrics are collected. After enabling metric collection, it can take several minutes for the data to appear in the workspace.
6975

0 commit comments

Comments
 (0)