github parthivrmenon/metric_usage_exporter v0.2.0

46 minutes ago

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(...) and query_result(...) variable queries now count as used.
  • Aggregation labels are detected: Labels used in aggregate clauses (by, without, on or group_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 at ghcr.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 (was 8080), registered on the Prometheus default portallocations wiki. Update scrape targets, or run with -listen-address :8080 to 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 queries sigprune_* metrics.
  • The repository moved to parthivrmenon/metric_usage_exporter. Old links will automatically redirect.

What's changed

New Contributors

  • @krmnn made their first contribution in #6

Full Changelog: v0.1.0...v0.2.0

Don't miss a new metric_usage_exporter release

NewReleases is sending notifications on new releases.