What are `job` and `instance` labels and where do they come from?
BeginnerConceptPrometheus Architecture
Answer
Prometheus attaches them to every scraped series: job is the job_name from the scrape config, and instance is the host:port of the target (from __address__). Together they identify where a series came from.
If the exposed metrics already carry a job or instance label, Prometheus renames them to exported_job / exported_instance unless honor_labels: true is set (used for Pushgateway and federation).
More on Prometheus Architecture
Describe the Prometheus architecture.BeginnerWhat does a basic prometheus.yml look like?BeginnerWhat is the `up` metric?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