Prometheus exporter for Riak metrics
Go to file
2023-08-09 18:05:20 +03:00
.github/workflows add github actions 2023-08-09 18:05:20 +03:00
src updated metrics output for prometheus with a 'riak_' prefix and removed unnecessary colon' 2016-08-17 14:35:32 +01:00
.gitignore Initial code 2016-06-01 18:47:03 +03:00
Dockerfile Added in Dockerfile and updated Readme 2016-08-09 13:45:14 +01:00
LICENSE Initial commit 2016-06-01 19:09:51 +04:00
MANIFEST.in Fixed some stuff with ports and manifest 2016-06-03 16:24:36 +03:00
README.md Added metadata labels to Readme 2016-09-01 13:11:36 +01:00
setup.py Fixed some stuff with ports and manifest 2016-06-03 16:24:36 +03:00

Riak KV Metrics Exporter

Prometheus exporter for Riak metrics. Supports Riak KV 2.x

It works simply by fetching available Riak /stats enpoint from the node, parsing its metrics and converting to format that Prometheus understands.

Installing, configuring, and running

You can install exporter on the same node as Riak KV instance, or on separate machine. To run, you must have Python and pip installed (Python 2 and 3 supported).

To install with pip:

pip install riak_exporter

Then just:

riak-exporter --address=0.0.0.0 --port=8097 --riak=http://localhost:8098/stats --endpoint=/metrics

All arguments are optional.

Docker

To run the container, simply use the below: docker run -p 8097:8097 infinityworks/prometheus-riak-exporter:latest

To run it with the optional arguments docker run -p 8097:8097 infinityworks/prometheus-riak-exporter:latest --address=0.0.0.0 --port=8097 --riak=http://localhost:8098/stats --endpoint=/metrics

Example Docker Compose

  riak-exporter:
    command: --address=0.0.0.0 --port=8097 --riak=http://localhost:8098/stats --endpoint=/metrics
    image: infinityworks/prometheus-riak-exporter:latest
    ports:
    - "8097:8097"

Daemonizing

Application intentionally does not daemonize itself. You are free to use your favorite method on your distribution.

Status

Currently, this app is in early stages of development. Nothing more that simple /stats endpoint translation is here. More features will (or will not follows) as long as I'll need them in my production setup.

Metrics