~/lightning

Lightning Talk: How to detect and delete unused metrics?

Lightningat PromCon EU 2025 · 2025-10-21..10-22· [observability, data-engineering]
slides:none on file

Unused metrics consume memory and disk; two practical detection methods are proposed: the manual method that pulls all metric names from Prometheus/VictoriaMetrics, parses alerting and recording rules plus Grafana queries and subtracts them, and the simpler method that tracks metric names on ingestion and logs all queried metric names over a day then subtracts to find unused. Use TSDB status to rank metrics by time-series count and identify high-memory candidates, then drop them with metric_relabel_configs or VictoriaMetrics’ drop-by-name/prefix/regex; VictoriaMetrics shows request count and last-query time to confirm zero-use.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.