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 /test
for 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.