Taking Advantage of Relabeling
summary
Relabeling explains exact steps: rename metric via __name__ relabeling to produce logical names, extract fields with regex capture groups into new labels, and drop unwanted exporter metrics to reduce visible series and UI noise (use samples_scraped to count how many were dropped). It shows rewriting __address__ to point at a blackbox exporter and adding module params, splitting targets with keep/drop rules, adding default alert labels like priority=p1, and warns relabeling never alters historical data and exporters still compute dropped series.
AI-written summary · about
