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.