Using blackbox exporter with basic auth

5,427 views
Skip to first unread message

Nina Sc

unread,
Sep 4, 2020, 2:39:14 PM9/4/20
to Prometheus Users
HI,

Assume that I've API which I need to probe via blackboxexporter, is there a way to use 
Any auth with the call, lets assume I call to an URL which require user and password or some OAuth , is it possible? if yes please provide a referance and if not is there any other option to to so as I assume this is some basic requirement .

Thannks!

Brian Candler

unread,
Sep 4, 2020, 3:01:50 PM9/4/20
to Prometheus Users
On Friday, 4 September 2020 19:39:14 UTC+1, Nina Sc wrote:
Assume that I've API which I need to probe via blackboxexporter, is there a way to use 
Any auth with the call, lets assume I call to an URL which require user and password or some OAuth , is it possible? if yes please provide a referance and if not is there any other option to to so as I assume this is some basic requirement .

blackbox exporter can do basic auth, bearer token and TLS client certificate authentication.  See:

I don't believe that it will do the OAuth dance for you (of which there are many variations anyway).  One option is to write a script and run it from exporter_exporter.

Nina Sc

unread,
Sep 5, 2020, 2:09:12 PM9/5/20
to Prometheus Users
Thank you very much! 
Reply all
Reply to author
Forward
0 new messages