Skip to content

Commit 3870a02

Browse files
update code formatting in note section
1 parent 2fab4a2 commit 3870a02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/azure-monitor/containers/prometheus-metrics-scrape-configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ tlsConfig:
577577
> Make sure the secret name is **ama-metrics-mtls-secret** and it is in **kube-system** namespace.
578578
>
579579
> If you want to use both basic and Tls authentication settings in your configmap/CRD, just make sure that the secret **ama-metrics-mtls-secret** includes all the files(keys) under the data section with their corresponding base 64 encoded values, as shown below.
580+
581+
```yaml
580582
apiVersion: v1
581583
kind: Secret
582584
metadata:
@@ -588,6 +590,8 @@ data:
588590
keyfile: base64_key_content # used for Tls
589591
password1: base64-encoded-string # used for basic auth
590592
password2: base64-encoded-string # used for basic auth
593+
```yaml
594+
591595
>
592596
> The secret should be created and then the configmap/CRD should be created in kube-system namespace. The order of secret creation matters. When there's no secret but a valid CRD/config map, you will find errors in collector log -> `no file found for cert....`
593597
>

0 commit comments

Comments
 (0)