What's New
- Prometheus rules as a usage source: Metrics and labels used in Prometheus alerting and recording rules now count as used.
- Template variables as a usage source:. Metrics and labels used in
label_values(...)andquery_result(...)variable queries now count as used. - Aggregation labels are detected: Labels used in aggregate clauses (
by,without,onorgroup_left) now count as used. metric_usage_prometheus_rule_count: – New metric and dashboard panel showing how many Prometheus rules were analysed.- Docker image: A Multi-arch (
amd64/arm64) image atghcr.io/parthivrmenon/metric_usage_exporter.
Breaking changes!
The project was renamed from sigprune-exporter to metric_usage_exporter. All metrics now use the metric_usage_ prefix. Any dashboard, alerts or recording rules using these metrics must be updated.
| v0.1.0 | v0.2.0 |
|---|---|
sigprune_build_info
| metric_usage_build_info
|
sigprune_up
| metric_usage_up
|
sigprune_unused_metric_cardinality
| metric_usage_unused_metric_cardinality
|
sigprune_unused_label_cardinality
| metric_usage_unused_label_cardinality
|
sigprune_dashboard_count
| metric_usage_dashboard_count
|
sigprune_alert_rule_count
| metric_usage_alert_rule_count
|
sigprune_total_tsdb_metrics
| metric_usage_tsdb_metrics
|
sigprune_total_tsdb_labels
| metric_usage_tsdb_labels
|
sigprune_total_used_metrics
| metric_usage_used_metrics
|
sigprune_total_used_labels
| metric_usage_used_labels
|
sigprune_total_unused_metrics
| metric_usage_unused_metrics
|
sigprune_total_unused_labels
| metric_usage_unused_labels
|
sigprune_metrics_export_limit
| metric_usage_metrics_export_limit
|
sigprune_labels_export_limit
| metric_usage_labels_export_limit
|
- Default port is now
10062(was8080), registered on the Prometheus default portallocations wiki. Update scrape targets, or run with-listen-address :8080to keep the old port. - Binaries are now named
metric_usage_exporter-<os>-<arch>, and the dashboard file ismetric_usage.json. Re-import the dashboard: the old one queriessigprune_*metrics. - The repository moved to
parthivrmenon/metric_usage_exporter. Old links will automatically redirect.
What's changed
- docs: remove dead link to dashboard by @parthivrmenon in #5
- fix: accept string panel IDs in dashboard JSON by @krmnn in #6
- Feat/add template vars by @parthivrmenon in #7
- refactor: update method names by @parthivrmenon in #8
- feat: add Prometheus Rules as a usage source by @parthivrmenon in #9
- fix: extract label names from aggregate and binary expressions by @parthivrmenon in #10
- feat: add prometheus_rule_count metric by @parthivrmenon in #11
- chore: add ci checks by @parthivrmenon in #12
- chore: rename to metric_usage_exporter by @parthivrmenon in #13
- docs: point at renamed repo and restructure README by @parthivrmenon in #14
- feat: change default listen port to 10062 by @parthivrmenon in #15
- docs: add Run with Docker section by @parthivrmenon in #16
New Contributors
Full Changelog: v0.1.0...v0.2.0