@@ -89,61 +89,61 @@ This step isn't required if you're using an AKS identity since it will already h
89
89
```yml
90
90
prometheus:
91
91
prometheusSpec:
92
- externalLabels:
93
- cluster: <AKS-CLUSTER-NAME>
94
-
95
- ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
96
- remoteWrite:
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
116
- containers:
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>
92
+ externalLabels:
93
+ cluster: <AKS-CLUSTER-NAME>
94
+
95
+ ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
96
+ remoteWrite:
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
+ ## writeRelabelConfigs:
105
+ ## - sourceLabels: [metrics_path]
106
+ ## regex: /metrics/cadvisor
107
+ ## targetLabel: job
108
+ ## replacement: cadvisor
109
+ ## action: replace
110
+ ## - sourceLabels: [job]
111
+ ## regex: 'node-exporter'
112
+ ## targetLabel: job
113
+ ## replacement: node
114
+ ## action: replace
115
+
116
+ containers:
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>
147
147
```
148
148
149
149
0 commit comments