From 89cd6009fc0ce42876886948ee26f0cb9b90b2c4 Mon Sep 17 00:00:00 2001 From: Dmitry Popovich <32481693+Tualua@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:13:55 +0800 Subject: [PATCH] Fix example prometheus datasource Example was not working. Needed to change some fields --- docs/docs/datasources.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/datasources.md b/docs/docs/datasources.md index 70e41c5b0..e7bb36875 100644 --- a/docs/docs/datasources.md +++ b/docs/docs/datasources.md @@ -33,7 +33,7 @@ spec: secretKeyRef: name: "credentials" key: "PROMETHEUS_USERNAME" - - targetPath: "secureJsonData.password" + - targetPath: "secureJsonData.basicAuthPassword" valueFrom: secretKeyRef: name: "credentials" @@ -48,12 +48,12 @@ spec: basicAuth: true url: http://prometheus-service:9090 isDefault: true - user: ${PROMETHEUS_USERNAME} + basicAuthUser: ${PROMETHEUS_USERNAME} jsonData: "tlsSkipVerify": true "timeInterval": "5s" secureJsonData: - "password": ${PROMETHEUS_PASSWORD} # Notice the brakes around PROMETHEUS_PASSWORD + "basicAuthPassword": ${PROMETHEUS_PASSWORD} # Notice the brakes around PROMETHEUS_PASSWORD ``` **NOTE:** The secret must exist in the same namespace as the datasource.