Prometheus metrics exporter for any json metrics that are provided by elasticsearch or kafka-manager
- 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
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
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