Https and basic authentication

70 views
Skip to first unread message

Mohan Nagandlla

unread,
Jan 7, 2021, 2:25:54 AM1/7/21
to Prometheus Users
Hi team I found in version 2.24.0 the both https and authentication features are enabled. I am getting exactly how to config those by the documentation in official web site can any one guide me to config TLS for prometheus and enabling the Authentication for the instance. 

Julien Pivotto

unread,
Jan 7, 2021, 3:47:34 AM1/7/21
to Mohan Nagandlla, Prometheus Users
> --
> 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 prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CALSpdGkDhbHFGEG%3D6n_rO19Vz55DRAb6J3Zdev1Gy87voG4XrQ%40mail.gmail.com.

Hello,

The reference doc is here:
https://prometheus.io/docs/prometheus/latest/configuration/https/

While we are crafting guides on the docs, I have already written a guide
here: https://inuits.eu/blog/prometheus-server-tls/

regards,

--
Julien Pivotto
@roidelapluie

Mohan Nagandlla

unread,
Jan 7, 2021, 4:08:59 AM1/7/21
to Mohan Nagandlla, Prometheus Users
Thank you I will explore it and get back to you

sayf eddine Hammemi

unread,
Jan 7, 2021, 4:37:29 AM1/7/21
to Mohan Nagandlla, Prometheus Users
I tried it too and made the mistake of placing the auth configuration in the main config file which didn't work, these configs should be placed in a separate `--web.config.file`. I hope this helps

Mohan Nagandlla

unread,
Jan 7, 2021, 12:58:57 PM1/7/21
to sayf eddine Hammemi, Prometheus Users
Every think is good I am using prometheus operator how did I do these things if it is a stand alone then it is easy but in operator how shall pass it via secerts

Julien Pivotto

unread,
Jan 7, 2021, 1:00:36 PM1/7/21
to Mohan Nagandlla, sayf eddine Hammemi, Prometheus Users
I guess that it will soon be integrated into the operator. It is not yet there.

Mohan Nagandlla

unread,
Jan 8, 2021, 1:33:29 AM1/8/21
to Julien Pivotto, sayf eddine Hammemi, Prometheus Users
Yes I done it in prometheus from operator 
The prometheus can accept the secrets so pass those files and certain in the form of secrets and then start the container with web.config.file=path to file then it will work. 

Thank you the support. 
Mohan nagandlla
Reply all
Reply to author
Forward
0 new messages