What is the `up` metric?
BeginnerConceptPrometheus Architecture
Answer
Prometheus generates up{job, instance} for every scrape: 1 if the scrape succeeded, 0 if it failed (connection refused, timeout, bad format). It also records scrape_duration_seconds, scrape_samples_scraped and scrape_series_added.
up == 0
This is the most basic "target down" alert, and a big advantage of the pull model.
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat are `job` and `instance` labels and where do they come from?BeginnerHow is the Prometheus TSDB organized on disk?AdvancedWhat is the WAL and why does Prometheus restart slowly sometimes?AdvancedHow do you configure Prometheus retention?Beginner