{"repo":"perses/metrics-usage","free":true,"listed":false,"github":"https://github.com/perses/metrics-usage","clone":"git clone https://github.com/perses/metrics-usage.git","description":"A tool for tracking the usage of metrics across dashboards, alerting rules & recording rules","language":"Go","stars":53,"topics":["analysis","metrics","prometheus"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Metrics Usage ============ This tool analyzes static files - like dashboards and Prometheus alert rules - to track where and how Prometheus metrics are used. It’s especially helpful for identifying whether metrics are actively used. Prometheus should ideally not scrape unused metrics to avoid an unnecessary load. API exposed Metrics The tool provides an API endpoint, /api/v1/metrics , which returns the usage data for each collected metric as shown below: You can use the following query parameter to filter the list returned: metric name : when used, it will trigger a exact match search on the metric name or fuzzy/regex match if you enable it with mode parameter. used : when used, will return only the metric used or not (depending on if you set this boolean to true or to false). Leave it empty if you want both. mode : when used change mode for filtering metrics. Three values are available: exact : doing exact match (case sensitive) based on the metric name fuzzy : doing fuzzy match based on the metric name regex : doing regex match based on the metric name merge partial metrics : when used, it will use the data from /api/v1/partial metrics and merge them here. Partial Metrics The API endpoint /api/v1/partial metrics is exposing the usage for metrics that contains variable or regexp. Pending Usage The API endpoint /api/v1/pending usages is exposing usage associated to metrics that has not yet been associated to the metrics available on the endpoint /api/v1/metrics . It's even po","default_branch":null,"files":null,"tree":[],"storefront":"/r/perses","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/perses/metrics-usage/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."}