ava-labs / avalanchego

Go implementation of an Avalanche node.
https://avax.network
BSD 3-Clause "New" or "Revised" License
2.09k stars 646 forks source link

Use health labels #3120

Closed StephenButtolph closed 1 week ago

StephenButtolph commented 2 weeks ago

Why this should be merged

See: #3119

How this works

Uses labels for the health workers rather than separate metrics.

How this was tested

# HELP avalanche_health_checks_failing number of currently failing health checks
# TYPE avalanche_health_checks_failing gauge
avalanche_health_checks_failing{check="health",tag="11111111111111111111111111111111LpoYY"} 1
avalanche_health_checks_failing{check="health",tag="all"} 1
avalanche_health_checks_failing{check="health",tag="application"} 1
avalanche_health_checks_failing{check="liveness",tag="all"} 0
avalanche_health_checks_failing{check="liveness",tag="application"} 0
avalanche_health_checks_failing{check="readiness",tag="all"} 1
avalanche_health_checks_failing{check="readiness",tag="application"} 1
StephenButtolph commented 1 week ago

Closing in favor of #3122