ricoberger / script_exporter

Prometheus exporter to execute scripts and collect metrics from the output or the exit status.
MIT License
354 stars 82 forks source link

Add bash to Docker image #46

Closed ricoberger closed 2 years ago

ricoberger commented 2 years ago

This PR adds a bash to the Docker image of the script_exporter, to make the examples working.

This was tested via the following commands:

docker run --rm -it --name script_exporter -p 9469:9469 -v $(pwd)/examples:/examples ricoberger/script_exporter:latest -config.file /examples/config.yaml
curl http://localhost:9469/probe\?script\=helloworld
docker exec -it script_exporter bash

Fixes #45