Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lhns/prometheus-bash-exporter
Prometheus metric exporter that executes a bash script on every scrape and returns the metrics from stdout
https://github.com/lhns/prometheus-bash-exporter
bash exporter prometheus prometheus-exporter script
Last synced: 14 days ago
JSON representation
Prometheus metric exporter that executes a bash script on every scrape and returns the metrics from stdout
- Host: GitHub
- URL: https://github.com/lhns/prometheus-bash-exporter
- Owner: lhns
- License: apache-2.0
- Created: 2020-11-22T18:56:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T01:15:12.000Z (6 months ago)
- Last Synced: 2024-05-17T23:29:13.117Z (6 months ago)
- Topics: bash, exporter, prometheus, prometheus-exporter, script
- Language: Scala
- Homepage: https://github.com/users/lhns/packages/container/package/prometheus-bash-exporter
- Size: 273 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prometheus-bash-exporter
[![Docker Workflow](https://github.com/lhns/prometheus-bash-exporter/workflows/build/badge.svg)](https://github.com/lhns/prometheus-bash-exporter/actions?query=workflow%3Abuild)
[![Release Notes](https://img.shields.io/github/release/lhns/prometheus-bash-exporter.svg?maxAge=3600)](https://github.com/lhns/prometheus-bash-exporter/releases/latest)
[![Apache License 2.0](https://img.shields.io/github/license/lhns/prometheus-bash-exporter.svg?maxAge=3600)](https://www.apache.org/licenses/LICENSE-2.0)
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)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](https://github.com/lhns/prometheus-bash-exporter/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.