{"repo":"unfor19/frigga","free":true,"listed":false,"github":"https://github.com/unfor19/frigga","clone":"git clone https://github.com/unfor19/frigga.git","description":"Scrape only relevant metrics in Prometheus, according to your Grafana dashboards","language":"Python","stars":33,"topics":["prometheus","grafana","dashboard","metrics-gathering","metrics"],"license":"MIT","category":"analytics","readme_excerpt":"frigga Do you have a Grafana instance? frigga makes sure you don’t scrape metrics in Prometheus, which you don’t present in Grafana dashboards. Scrape only relevant metrics in Prometheus, according to your Grafana dashboards, see the before and after snapshot. frigga generates keep filters on metric relabel configs, and adds them to your prometheus.yml file frigga is extremely useful for Grafana Cloud customers since the pricing is per DataSeries ingestions. Illustration Expand/Collapse Requirements Python 3.6.7+ Installation Docker For ease of use, add an alias in your /.bashrc file Available Commands Auto-generated by unfor19/replacer-action, see readme.yml Getting Started 1. Grafana - Import the dashboard frigga - Jobs Usage (ID: 12537) to Grafana, and check out the number of DataSeries 1. Grafana - Generate an API Key for Viewer 1. frigga - Get the list of metrics that are used in your Grafana dasboards .metrics.json - automatically generated in pwd 1. Add the following snippet to the bottom of your prometheus.yml file. Check the example in docker-compose/prometheus-original.yml 1. frigga - Use the .metrics.json file to apply the rules to your existing prometheus.yml 1. As mentioned in the previous step, reload the prometheus.yml to Prometheus, here are two ways of doing it - \"Kill\" Prometheus - Send a POST request to /-/reload - this requires Prometheus to be loaded with --web.enable-lifecycle , for example, see docker-compose.yml Or with curl 1. Make sure the prometheus","default_branch":null,"files":null,"tree":[],"storefront":"/r/unfor19","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unfor19/frigga/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."}