Prometheus metric exporter that executes a bash script on every scrape and returns the metrics from stdout.
$@ in the executed script will always contain the request path segments.
- LOG_LEVEL: log level (default: ERROR)
- SERVER_HOST: listen host (default: 0.0.0.0)
- SERVER_PORT: listen port (default: 8080)
- SCRIPT_METRICS: script that is executed on
GET /metrics - SCRIPT_TEST: script that is executed on
GET /test - CACHE_TEST: cache the output of
GET /testfor 10 seconds
Head over to the wiki to see our collection of scripts.
https://github.com/users/lhns/packages/container/package/prometheus-bash-exporter
This project uses the Apache 2.0 License. See the file called LICENSE.