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

nomad-sd: Expose service check status as metrics #16602

Open
michael-strigo opened this issue Mar 22, 2023 · 4 comments
Open

nomad-sd: Expose service check status as metrics #16602

michael-strigo opened this issue Mar 22, 2023 · 4 comments
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/client theme/metrics type/enhancement

Comments

@michael-strigo
Copy link

Proposal

Expose service's health check status via metrics.
Ideally, it would be nice to have a gauge for healthy vs unhealthy allocations of a specific service.

Use-cases

Allow external tools to detect cases in which service went unhealthy.

@jrasell
Copy link
Member

jrasell commented Mar 23, 2023

Hi @michael-strigo and thanks for the suggestion. This seems like a nice idea and so I'll add it to the backlog.

@jrasell jrasell added theme/client theme/metrics stage/accepted Confirmed, and intend to work on. No timeline committment though. labels Mar 23, 2023
@SunSparc
Copy link

The Nomad Metrics Reference document lists the nomad.nomad.job_summary.running (aka nomad_nomad_job_summary_running) metric, as well as a few others that match up with the "Allocation Status" section of the Nomad web UI. However, I agree, it would be nice to have access to the Placed/Desired/Healthy/Unhealthy stats.

@michael-strigo
Copy link
Author

I've created a small Prometheus exporter to address this issue for now: https://github.com/strigo/nomad-service-discovery-exporter

@msherman13
Copy link

agree this seems like an obvious win, also on the consul side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/client theme/metrics type/enhancement
Projects
Status: Needs Roadmapping
Development

No branches or pull requests

4 participants