Skip to content

Commit cff763d

Browse files
authored
Update prometheus-rule-groups.md
1 parent e4014c4 commit cff763d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-monitor/essentials/prometheus-rule-groups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To limit your rule group to a cluster scope, you should add the Azure Resource I
3636
* Azure Arc-enabled Kubernetes clusters (Microsoft.kubernetes/connectedClusters)
3737
* Azure connected appliances (Microsoft.ResourceConnector/appliances)
3838

39-
In addition to the cluster ID, you can configure the **clusterName** property of your rule group, to match the `cluster` label that is added to the metrics from a specific cluster during data collection. By default, if you haven't specified a clusterName, the rule group uses the resource name part of your cluster ID.
39+
In addition to the cluster ID, you can configure the **clusterName** property of your rule group. The 'clusterName' property must match the `cluster` label that is added to your metrics when scraped from a specific cluster. By default, this label is set to the last part (resource name) of your cluster ID. If you've changed this label using the ['cluster_alias'](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/prometheus-metrics-scrape-configuration#cluster-alias) setting in your cluster scraping configmap, you must include the updated value in the rule group 'clusterName' property. If your scraping uses the dafault 'cluster' label value, the 'clusterName' property is optional.
4040

4141
Here's an example of how a rule group is configured to limit query to a specific cluster:
4242

0 commit comments

Comments
 (0)