On 22.01.21 01:40, Dhanush Eswar wrote: > Yes, the feature is quite confusing and Is there any other method for > providing the basic Authentication to my exporter?
It's not confusing, it's a different thing. The documentation linked below is for adding basic auth to pushes to the Prometheus Pushgateway. There is no "built-in" way to add basic auth to the metrics served. The serving itself is also not really the concern of the library. Only the simplest case is included for conveniounce. The following section tells you how to use client_python with various web frameworks, which should then in turn help you with authentication etc.: https://github.com/prometheus/client_python#exporting > On Wednesday, January 13, 2021 at 2:38:09 PM UTC+5:30 > [email protected] wrote: > > > Hello, You are using the prometheus python client? because the feature is > > supported out of the box > > https://github.com/prometheus/client_python#handlers-for-authentication -- Björn Rabenstein [PGP-ID] 0x851C3DA17D748D03 [email] [email protected] -- 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/20210205130630.GN4007%40jahnn.

