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

Instance shown as "up" although status code 403 (module http_2xx) #50

Closed
svenmueller opened this issue Jul 17, 2016 · 2 comments
Closed

Comments

@svenmueller
Copy link

Hi,

I'm using the latest Docker image of blackbox for probing targets. I'm having a target probe (module http_2xx, config as in https://github.com/prometheus/blackbox_exporter/blob/master/blackbox.yml) where the server returns status code 403 (due to IP resctriction), but the target instance is still shown as "up".I would expect status "down" since i'm using the defaul config for module http_2xx which checks for status code 200-300.

When looking at the value of probe_http_status_code for this instance, it shows 403.

Any idea why the instance is still shown as "up"?

Cheers Sven

@brian-brazil
Copy link
Contributor

You're looking for the probe_success metric.

If we used up then you'd lose all the other metrics when a probe failed.

@svenmueller
Copy link
Author

Thx for the super fast answer 👍

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

No branches or pull requests

2 participants