May 2019
Intermediate to advanced
442 pages
11h 36m
English
For each defined scrape job, Prometheus will produce an automatic metric named up, which reflects the health of the job in question – 1 for a successful scrape and 0 for a failed one. We can use this metric to quickly visualize the current health state of the entire infrastructure of exporters and/or applications being scraped.
Let's get an overview of all the successful jobs being scraped:
sum by (job) (up)
{job="hey-service"} 3{job="cadvisor-service"} 1{job="kube-state-metrics"} 2{job="node-exporter-service"} 1{job="prometheus-service"} 2
Read now
Unlock full access