Missing Metrics
Cheat sheet · https://pcornel.dk/topic.php?topic=6233
Answer
Missing metrics: a series stops or never appears because the target is down, scrape fails, relabelling drops it, the metric name/labels changed, or the code path never ran.
Remember
Absence doesn't trigger normal alerts — use absent() or up == 0. Check target status, then the raw /metrics output.
First checks
up{job="<job>"}— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
code path runs → metric exposed → scraped → kept by relabel → stored
Where it usually breaks
Library upgrades often rename metrics (for example adding _total).
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6233