{"repo":"oliver006/redis_exporter","free":true,"listed":false,"github":"https://github.com/oliver006/redis_exporter","clone":"git clone https://github.com/oliver006/redis_exporter.git","description":"Prometheus Exporter for Valkey & Redis Metrics. Supports Valkey 9.x, 8.x, 7.x and various Redis versions","language":"Go","stars":3678,"topics":["prometheus","prometheus-exporter","go","metrics","redis","redis-cluster","redis-exporter","redis-nodes","resist","stand-with-hong-kong"],"license":"MIT","category":"analytics","readme_excerpt":"Prometheus Valkey & Redis Metrics Exporter Prometheus exporter for Valkey metrics (Redis-compatible).\\ Supports Valkey 7.x, 8.x, 9.x (and Redis) Ukraine is still suffering from Russian aggression, please consider supporting Red Cross Ukraine with a donation. Building and running the exporter Build and run locally Pre-build binaries For pre-built binaries please take a look at the releases. Basic Prometheus Configuration Add a block to the scrape configs of your prometheus.yml config file: and adjust the host name accordingly. Kubernetes SD configurations To have instances in the drop-down as human readable names rather than IPs, it is suggested to use instance relabelling. For example, if the metrics are being scraped via the pod role, one could add: as a relabel config to the corresponding scrape config. As per the regex value, only pods with \"redis\" in their name will be relabelled as such. Similar approaches can be taken with other role types depending on how scrape targets are retrieved. Prometheus Configuration to Scrape Multiple Redis Hosts The Prometheus docs have a very informative article on how multi-target exporters are intended to work. Run the exporter with the command line flag --redis.addr= so it won't try to access the local instance every time the /metrics endpoint is scraped. Using below config instead of the /metric endpoint the /scrape endpoint will be used by prometheus. As an example the first target will be queried with this web request: http://exporter","default_branch":null,"files":null,"tree":[],"storefront":"/r/oliver006","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oliver006/redis_exporter/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."}