Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding probing remote instances having basic auth #53

Closed
svenmueller opened this issue Jul 21, 2016 · 4 comments
Closed

Question regarding probing remote instances having basic auth #53

svenmueller opened this issue Jul 21, 2016 · 4 comments
Labels

Comments

@svenmueller
Copy link

Hi,

Some of our instances (e.g. staging servers) are protected using BASIC AUTH. Is there a way using blackbox-exporter to probe those servers (e.g. using module http_2xx)

Thx in Advance,
Sven

@brian-brazil
Copy link
Contributor

You can pass in headers with the http module, which would let you do basic auth.

@svenmueller
Copy link
Author

Ok. So we would need to have have multiple module configurations if we have targets using differrent BASCI AUTH credentials, right? Or is there a way to pass the headers for each target like done with the targets in the Prometheus configuration (via relabeling).

@brian-brazil
Copy link
Contributor

Yes, you'd need a module config per different set of credentials.

I'd suggest looking into having a monitoring set of credentials that works across targets.

@svenmueller
Copy link
Author

Yes, that would be one way of limiting the amount of required modules.

Btw, thx for your awesome work here (and all other Prometheus related project). I really appreciate it!

Cheers Sven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants