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

HealthChecks.Prometheus.Metrics returning HTTP 503 if one healthcheck is unhealthy #644

Closed
forki opened this issue Sep 24, 2020 · 1 comment
Assignees

Comments

@forki
Copy link

forki commented Sep 24, 2020

I'm using HealthChecks.Prometheus.Metrics and trying to import it into Prometheus.
As soon as one health check is going into unhealthy the whole endpoint is returning HTTP 503

It looks like Prometheus is completely ignoring the data in that case. My yml looks like that:

- job_name: myhealthjob
  static_configs:
  - targets: ['localhost:8087']
  metrics_path : '/prometheus-health-metrics'

Is there something I need to change in the yml or can I somehow make the healthcheck give a 200?

Thanks

@unaizorrilla
Copy link
Collaborator

I think this issue is just closed with #566 from @epaulsen !!

Can you check? probably the release for new package 3.1.4 is on appveyor now but in a few minutes the package will be available on NuGet!

@unaizorrilla unaizorrilla self-assigned this Sep 25, 2020
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