up metric

A series Prometheus writes for every target after each scrape: 1 if the fetch worked and 0 if it failed.

In more detail

up is written by Prometheus itself, not by your service, so it still works when the service is dead. Alerting on up is usually the first alert a team writes, but up only proves the page could be fetched, not that the service's real work succeeds.

Example

curl -s 'localhost:9090/api/v1/query?query=up' returns checkout 1, otel-collector 1, prometheus 1.

Related terms

Taught in

References

Certification courses