trkohler / json-exporter

Prometheus metrics exporter for any json metrics that are provided by elasticsearch or kafka-manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build, lint and test

Json exporter

Prometheus metrics exporter for any json metrics that are provided by elasticsearch or kafka-manager

Why do I need another exporter?

  • you can drop metrics you don't use. Less metrics - better for Prometheus
  • you can add metrics you need without patching source code. Just put them into config.
  • Elasticsearch exporter is not maintained for a long time

How to run

Download and unpack last release: https://github.com/anti-social/json-exporter/releases

Run it:

./json-exporter --base-url http://localhost:9200 elasticsearch_exporter.yaml

Check it opening in your browser: http://localhost:9114/metrics

You can set log level via RUST_LOG environment variable:

RUST_LOG=info ./json-exporter --base-url http://localhost:9200 elasticsearch_exporter.yaml

Using docker

docker pull kovalidis/json-exporter
docker run -it --rm -p 9114 -e RUST_LOG=info kovalidis/json-exporter --base-url http://localhost:9200 /app/elasticsearch_exporter.yaml

About

Prometheus metrics exporter for any json metrics that are provided by elasticsearch or kafka-manager


Languages

Language:Rust 100.0%