{"repo":"ricoberger/script_exporter","free":true,"listed":false,"github":"https://github.com/ricoberger/script_exporter","clone":"git clone https://github.com/ricoberger/script_exporter.git","description":"Prometheus exporter to execute scripts and collect metrics from the output or the exit status.","language":"Go","stars":460,"topics":["go","prometheus","prometheus-exporter","script","scripts","docker","kubernetes"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Script Exporter The Script Exporter is a Prometheus exporter to execute scripts and collect metrics from the output or the exit status. The scripts to be executed are defined via a configuration file. In the configuration file several scripts can be specified. The script which should be executed is indicated by a parameter in the scrap configuration. The output of the script is captured and is provided for Prometheus. Even if the script does not produce any output, the exit status and the duration of the execution are provided. Building and Running To run the Script Exporter you can use the one of the binaries from the release page or the Docker image. You can also build the Script Exporter by yourself by running the following commands: Afterwards you can run the Script Exporter with the example configuration, by using the following command: To run the examples via Docker or Docker Compose the following commands can be used. The Docker Compose setup will also start a Prometheus instance with a scrape configuration for all scripts. Then visit http://localhost:9469 in the browser of your choice. There you have access to the following examples: - output: Parses the returned output from the script and only return valid Prometheus metrics. - ping: Pings the specified address in the target parameter and returns if it was successful or not. - showtimeout: Reports whether or not the script is being run with a timeout from Prometheus, and what it is. - docker: Example using docker exe","default_branch":null,"files":null,"tree":[],"storefront":"/r/ricoberger","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ricoberger/script_exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}