-
Notifications
You must be signed in to change notification settings - Fork 137
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
Healthz collector doesn't works #237
Comments
I had this issue as well, here's the debug output from the exporter:
A forward slash is needed before the endpoint |
any updates? |
@autokilla47 the issue has been fixed. Regarding the suggestion to change statuses, we will discuss it, as its potentially a big breaking change. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there!
I found a bug with healtz collector. Url for scrapping incorrectly generated. So I found a solution and a similar PR in this repo: this
So what the status of fixing this bug? A whole month has passed.
And I have a suggestion for this metric. I think it's incorrect to show metric like this:
gnatsd_healthz_status{server_id="http://localhost:8222"} 0
when healtz probe is ok. And don't show it at all when server is down.
[DBG] ignoring server http://localhost:8222: Get "http://localhost:8222/healthz": dial tcp [::1]:8222: connect: connection refused
(ignoring scraping metrics for disabled server)My suggestion is to set ok status to 1 and any problem status even server is down to 0 or create more informative metrics for this with showing error. Btw it's relevant after fixing bug with endpoint
Version github.com/nats-io/prometheus-nats-exporter v0.12.0
The text was updated successfully, but these errors were encountered: