Skip to content

delucks/monit_exporter

 
 

Repository files navigation

Monit Exporter for Prometheus

Simple server that periodically scrapes monit status and exports checks information via HTTP for Prometheus. This fork has changed little about the metrics emitted by this server- it's still just the status of each check- but it's made some changes to update and improve the code's error handling.

Build it:

go build

Run it:

./monit_exporter

Configuration

The application will look for configuration in "config.toml" file located in the same directory. Use -conf flag to override config file name and location.

Configuration parameters:

Parameter Description Default
listen_address address and port to bind localhost:9388
metrics_path relative path to expose metrics /metrics
ignore_ssl whether of not to ignore ssl errors false
monit_scrape_uri uri to get monit status http://localhost:2812/_status?format=xml&level=full
monit_user user for monit basic auth, if needed none
monit_password password for monit status, if needed none

About

Monit exporter for Prometheus

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%