From 545adc2a11c7d1a2ae6b7209e8eb4e99225bd702 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 8 Nov 2023 21:19:12 +0000 Subject: [PATCH] Fixing example in remote.kubernetes.secret.md to include nonsensitive() (#5704) (#5711) The prometheus.remote_write basic_auth username is a string type and the agent will non start if the username is provided directly as a secret out of remote.kubernetes.secret. Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> (cherry picked from commit ffccd0a66d5a08280e6a6339e20e9eb44f043980) Co-authored-by: Nicolai Hornung --- .../flow/reference/components/remote.kubernetes.secret.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/flow/reference/components/remote.kubernetes.secret.md b/docs/sources/flow/reference/components/remote.kubernetes.secret.md index d2126d2a46c3..f72eab8fde72 100644 --- a/docs/sources/flow/reference/components/remote.kubernetes.secret.md +++ b/docs/sources/flow/reference/components/remote.kubernetes.secret.md @@ -156,7 +156,7 @@ prometheus.remote_write "default" { endpoint { url = remote.kubernetes.configmap.endpoint.data["url"] basic_auth { - username = remote.kubernetes.configmap.endpoint.data["username"] + username = nonsensitive(remote.kubernetes.configmap.endpoint.data["username"]) password = remote.kubernetes.secret.credentials.data["password"] } } @@ -164,4 +164,4 @@ prometheus.remote_write "default" { ``` This example assumes that the Secret and ConfigMap have already been created, and that the appropriate field names -exist in their data. \ No newline at end of file +exist in their data.