What about the username? On Thursday, August 13, 2020 at 6:58:57 AM UTC-7, Julien Pivotto wrote: > > On 13 Aug 06:56, Justin Thomas wrote: > > The prometheus docs have the below: > > > > # Sets the `Authorization` header on every scrape request with the > > # configured username and password. > > # password and password_file are mutually exclusive. > > basic_auth: > > [ username: <string> < > https://prometheus.io/docs/prometheus/latest/configuration/configuration/#string> > > ] > > [ password: <secret> < > https://prometheus.io/docs/prometheus/latest/configuration/configuration/#secret> > > ] > > [ password_file: <string> < > https://prometheus.io/docs/prometheus/latest/configuration/configuration/#string> > > ] > > > > > > What is the format of password_file? I know you can create a file with > > htpasswd, but that has the hashed version of the password so would > assume > > that isn't what the scrape config needs to make a request to a /metrics > > with basic auth. Any examples around? > > The file must just contain the password in plaintext. > > > > > -- > > 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] <javascript:>. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/a0a2e662-ad1e-463b-91b0-2b541e1a36cao%40googlegroups.com. > > > > > -- > Julien Pivotto > @roidelapluie >
-- 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/3202b4a9-b9ee-45e4-812e-af5f1e8c990ao%40googlegroups.com.

