> But for the life of me, i cant seem to get prometheus to pick it up in 
the scrape job.
> Am i missing the obvious?

Environment-variable substitution is not performed in prometheus' config 
file.

You could expose the secret containing the password as a file, rather than 
an environment variable:
https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod

basic_auth:
  username: some_static_username
  password_file: /path/to/file

The username, though, still has to be included inline.

Since you're deploying via helm, there might be some way the helm chart 
lets you insert these values into the prometheus configuration.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/96a7f632-132a-4f09-b1bd-e464f7c8baa9n%40googlegroups.com.

Reply via email to