Cover for target discovery and relabeling, with observe, decide and act steps.

Target relabeling selects and labels targets before scraping

Service discovery produces candidate targets and metadata. Target relabeling transforms those candidates before Prometheus scrapes them. It can keep or drop targets, change how they are addressed, and create labels carried into collected series. This is a different stage from rewriting individual scraped samples. Understanding the stage prevents a configuration intended to remove one metric from accidentally removing an entire target. ...

April 6, 2027 · 5 min · XB Field Notes