@@ -94,38 +94,56 @@ This step isn't required if you're using an AKS identity since it will already h
94
94
95
95
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
96
96
remoteWrite:
97
- - url: 'http://localhost:8081/api/v1/write'
97
+ - url: 'http://localhost:8081/api/v1/write'
98
+
99
+ ## Azure Managed Prometheus currently exports some default mixins in Grafana.
100
+ ## These mixins are compatible with Azure Monitor agent on your Azure Kubernetes Service cluster.
101
+ ## However, these mixins aren't compatible with Prometheus metrics scraped by the Kube Prometheus stack.
102
+ ## In order to make these mixins compatible, uncomment remote write relabel configuration below:
103
+
104
+
105
+ ## writeRelabelConfigs:
106
+ ## - sourceLabels: [metrics_path]
107
+ ## regex: /metrics/cadvisor
108
+ ## targetLabel: job
109
+ ## replacement: cadvisor
110
+ ## action: replace
111
+ ## - sourceLabels: [job]
112
+ ## regex: 'node-exporter'
113
+ ## targetLabel: job
114
+ ## replacement: node
115
+ ## action: replace
98
116
containers:
99
- - name: prom-remotewrite
100
- image: <CONTAINER-IMAGE-VERSION>
101
- imagePullPolicy: Always
102
- ports:
103
- - name: rw-port
104
- containerPort: 8081
105
- livenessProbe:
106
- httpGet:
107
- path: /health
108
- port: rw-port
109
- initialDelaySeconds: 10
110
- timeoutSeconds: 10
111
- readinessProbe:
112
- httpGet:
113
- path: /ready
114
- port: rw-port
115
- initialDelaySeconds: 10
116
- timeoutSeconds: 10
117
- env:
118
- - name: INGESTION_URL
119
- value: <INGESTION_URL>
120
- - name: LISTENING_PORT
121
- value: '8081'
122
- - name: IDENTITY_TYPE
123
- value: userAssigned
124
- - name: AZURE_CLIENT_ID
125
- value: <MANAGED-IDENTITY-CLIENT-ID>
126
- # Optional parameter
127
- - name: CLUSTER
128
- value: <CLUSTER-NAME>
117
+ - name: prom-remotewrite
118
+ image: <CONTAINER-IMAGE-VERSION>
119
+ imagePullPolicy: Always
120
+ ports:
121
+ - name: rw-port
122
+ containerPort: 8081
123
+ livenessProbe:
124
+ httpGet:
125
+ path: /health
126
+ port: rw-port
127
+ initialDelaySeconds: 10
128
+ timeoutSeconds: 10
129
+ readinessProbe:
130
+ httpGet:
131
+ path: /ready
132
+ port: rw-port
133
+ initialDelaySeconds: 10
134
+ timeoutSeconds: 10
135
+ env:
136
+ - name: INGESTION_URL
137
+ value: <INGESTION_URL>
138
+ - name: LISTENING_PORT
139
+ value: '8081'
140
+ - name: IDENTITY_TYPE
141
+ value: userAssigned
142
+ - name: AZURE_CLIENT_ID
143
+ value: <MANAGED-IDENTITY-CLIENT-ID>
144
+ # Optional parameter
145
+ - name: CLUSTER
146
+ value: <CLUSTER-NAME>
129
147
```
130
148
131
149
0 commit comments