The icinga2-exporter utilizes the Icinga 2 REST API to fetch service based performance data and publish it in a way that lets Prometheus scrape the performance data as metrics.
https://github.com/opsdis/icinga2-exporter
You need to run this command line in Docker:
gunicorn --bind 0.0.0.0:8000 --access-logfile /dev/null -w 4 -k uvicorn.workers.UvicornWorker "wsgi:create_app('/etc/icinga2-exporter/config.yml')"
If you want, for example, use Kubernetes, use this fragment within your container definition:
command:
- gunicorn
args:
- "--bind"
- "0.0.0.0:8000"
- "--access-logfile"
- "/dev/null"
- "-w"
- "4"
- "-k"
- "uvicorn.workers.UvicornWorker"
- "wsgi:create_app('/etc/icinga2-exporter/config.yml')"
Also make sure to mount your config.yml to the right location (/etc/icinga2-exporter/config.yml) in your container.
Content type
Image
Digest
Size
130.2 MB
Last updated
almost 5 years ago
docker pull guidoffm/icinga2-exporter:v1.0.0