Skip to content

Commit 2384c38

Browse files
Update links
1 parent abdf6d3 commit 2384c38

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ Scraping targets using basic auth is currently not supported using pod/service m
498498
---
499499

500500
If you are using both basic auth and tls auth, please refer to the [section](#create-secret-using-yaml-for-both-basic-and-tls-auth) below.
501-
For more details, refer to the [note section](#note-section).
501+
For more details, refer to the [note section](#note-for-both-basic-and-tls-authentication) below.
502502

503503

504504
### TLS based scraping
@@ -521,8 +521,6 @@ Please follow the below steps.
521521
<certfile>: base64_cert_content
522522
<keyfile>: base64_key_content
523523
```
524-
525-
---
526524

527525
The **ama-metrics-mtls-secret** secret is mounted on to the ama-metrics containers at path - **/etc/prometheus/certs/** and is made available to the process that is scraping prometheus metrics. The key( ex - certfile) in the above example will be the file name and the value is base64 decoded and added to the contents of the file within the container and the prometheus scraper uses the contents of this file to get the value that is used as the password used to scrape the endpoint.
528526

@@ -569,7 +567,6 @@ Please follow the below steps.
569567
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.
570568

571569
```yaml
572-
573570
apiVersion: v1
574571
kind: Secret
575572
metadata:
@@ -581,10 +578,9 @@ Please follow the below steps.
581578
keyfile: base64_key_content # used for Tls
582579
password1: base64-encoded-string # used for basic auth
583580
password2: base64-encoded-string # used for basic auth
581+
```
584582

585-
```yaml
586-
587-
<a name="note-section"></a>
583+
### Note for both Basic and TLS authentication
588584
> [!NOTE]
589585
>
590586
> The **/etc/prometheus/certs/** path is mandatory, but *password1* can be any string and needs to match the key for the data in the secret created above. This is because the secret **ama-metrics-mtls-secret** is mounted in the path **/etc/prometheus/certs/** within the container.

0 commit comments

Comments
 (0)