Skip to content

Repository files navigation

prometheus-bash-exporter

Docker Workflow Release Notes Apache License 2.0 Scala Steward badge

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.

Environment variables

  • 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

Scripts

Head over to the wiki to see our collection of scripts.

Docker builds

https://github.com/users/lhns/packages/container/package/prometheus-bash-exporter

License

This project uses the Apache 2.0 License. See the file called LICENSE.

About

Prometheus metric exporter that executes a bash script on every scrape and returns the metrics from stdout

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages