Skip to content

Commit 39f8112

Browse files
committed
prometheus remote write active director relabel
1 parent dcb2db7 commit 39f8112

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

articles/azure-monitor/essentials/prometheus-remote-write-active-directory.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,25 @@ This step is only required if you didn't enable Azure Key Vault Provider for Sec
145145
```yml
146146
prometheus:
147147
prometheusSpec:
148-
cluster: <CLUSTER-NAME>
148+
cluster: <CLUSTER-NAME>
149+
150+
## Azure Managed Prometheus currently exports some default mixins in Grafana.
151+
## These mixins are compatible with data scraped by Azure Monitor agent on your
152+
## Azure Kubernetes Service cluster. These mixins aren't compatible with Prometheus
153+
## metrics scraped by the Kube Prometheus stack.
154+
## To make these mixins compatible, uncomment the remote write relabel configuration below:
155+
156+
## writeRelabelConfigs:
157+
## - sourceLabels: [metrics_path]
158+
## regex: /metrics/cadvisor
159+
## targetLabel: job
160+
## replacement: cadvisor
161+
## action: replace
162+
## - sourceLabels: [job]
163+
## regex: 'node-exporter'
164+
## targetLabel: job
165+
## replacement: node
166+
## action: replace
149167
150168
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
151169
remoteWrite:

0 commit comments

Comments
 (0)