Skip to content

Commit 30b3d2b

Browse files
authored
Merge pull request #259766 from EdB-MSFT/indentation-correction-prometheus-sidecar-remote-write-managed-identity-yaml
fixed indents as per https://github.com/MicrosoftDocs/azure-docs/pull…
2 parents eeaedd7 + fa046e6 commit 30b3d2b

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

articles/azure-monitor/includes/prometheus-sidecar-remote-write-managed-identity-yaml.md

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ ms.date: 11/12/2023
1010
prometheus:
1111
prometheusSpec:
1212
externalLabels:
13-
cluster: <AKS-CLUSTER-NAME>
13+
cluster: <AKS-CLUSTER-NAME>
1414

15-
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
16-
remoteWrite:
17-
- url: 'http://localhost:8081/api/v1/write'
18-
15+
## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
16+
remoteWrite:
17+
- url: 'http://localhost:8081/api/v1/write'
1918
## Azure Managed Prometheus currently exports some default mixins in Grafana.
2019
## These mixins are compatible with Azure Monitor agent on your Azure Kubernetes Service cluster.
2120
## However, these mixins aren't compatible with Prometheus metrics scraped by the Kube Prometheus stack.
2221
## In order to make these mixins compatible, uncomment remote write relabel configuration below:
23-
22+
2423
## writeRelabelConfigs:
2524
## - sourceLabels: [metrics_path]
2625
## regex: /metrics/cadvisor
@@ -32,36 +31,35 @@ prometheus:
3231
## targetLabel: job
3332
## replacement: node
3433
## action: replace
35-
36-
containers:
37-
- name: prom-remotewrite
38-
image: <CONTAINER-IMAGE-VERSION>
39-
imagePullPolicy: Always
40-
ports:
41-
- name: rw-port
42-
containerPort: 8081
43-
livenessProbe:
44-
httpGet:
45-
path: /health
46-
port: rw-port
34+
containers:
35+
- name: prom-remotewrite
36+
image: <CONTAINER-IMAGE-VERSION>
37+
imagePullPolicy: Always
38+
ports:
39+
- name: rw-port
40+
containerPort: 8081
41+
livenessProbe:
42+
httpGet:
43+
path: /health
44+
port: rw-port
4745
initialDelaySeconds: 10
4846
timeoutSeconds: 10
49-
readinessProbe:
50-
httpGet:
51-
path: /ready
52-
port: rw-port
47+
readinessProbe:
48+
httpGet:
49+
path: /ready
50+
port: rw-port
5351
initialDelaySeconds: 10
5452
timeoutSeconds: 10
55-
env:
56-
- name: INGESTION_URL
57-
value: <INGESTION_URL>
58-
- name: LISTENING_PORT
59-
value: '8081'
60-
- name: IDENTITY_TYPE
61-
value: userAssigned
62-
- name: AZURE_CLIENT_ID
63-
value: <MANAGED-IDENTITY-CLIENT-ID>
53+
env:
54+
- name: INGESTION_URL
55+
value: <INGESTION_URL>
56+
- name: LISTENING_PORT
57+
value: '8081'
58+
- name: IDENTITY_TYPE
59+
value: userAssigned
60+
- name: AZURE_CLIENT_ID
61+
value: <MANAGED-IDENTITY-CLIENT-ID>
6462
# Optional parameter
65-
- name: CLUSTER
66-
value: <CLUSTER-NAME>
67-
```
63+
- name: CLUSTER
64+
value: <CLUSTER-NAME>
65+
```

0 commit comments

Comments
 (0)