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
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in