{"repo":"VictoriaMetrics-Community/victoriametrics-unused-metrics-pushgateway","free":true,"listed":false,"github":"https://github.com/VictoriaMetrics-Community/victoriametrics-unused-metrics-pushgateway","clone":"git clone https://github.com/VictoriaMetrics-Community/victoriametrics-unused-metrics-pushgateway.git","description":"Exports unused metric series from VictoriaMetrics for monitoring and optimization.","language":"Shell","stars":13,"topics":["metrics","observability","prometheus","victoriametrics","tsdb"],"license":"GPL-3.0","category":"analytics","readme_excerpt":"VictoriaMetrics Unused Metrics Exporter Motivation In large observability environments, it is common for time series databases like VictoriaMetrics to accumulate a significant number of metrics that are no longer being queried or used. These unused metrics can consume storage, increase costs, and make troubleshooting more difficult. This script helps you identify and expose metrics in VictoriaMetrics (single-node or cluster) that have not been queried within a configurable time window. It exports this information in Prometheus exposition format and pushes the result directly to VictoriaMetrics ingestion endpoints. With this script, you can: - Visualize unused metrics in Grafana or other observability tools - Automate cleanup or alerting for unused metrics - Optimize storage and improve query performance in VictoriaMetrics How it works - Queries the VictoriaMetrics TSDB status API to get the last request timestamp for each metric - Filters metrics that have not been queried in the specified period (configurable with --time-limit ) - Exports the result as a Prometheus metric ( vm unused metrics ) - Pushes the result directly to the VictoriaMetrics ingestion endpoint (single-node or cluster) CLI version You can run the script for both single-node and cluster VictoriaMetrics deployments. All configuration is done via command-line arguments: Options: - --single-node : VictoriaMetrics single-node base URL ( required for single-node mode) - --cluster-version : VictoriaMetrics cluste","default_branch":null,"files":null,"tree":[],"storefront":"/r/VictoriaMetrics-Community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/VictoriaMetrics-Community/victoriametrics-unused-metrics-pushgateway/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}