Sign inSign up

guidoffm/icinga2-exporter

By guidoffm

Updated almost 5 years ago

Image
0

451

guidoffm/icinga2-exporter repository overview

icinga2-exporter

Overview

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

Run

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.

Tag summary

Content type

Image

Digest

Size

130.2 MB

Last updated

almost 5 years ago

docker pull guidoffm/icinga2-exporter:v1.0.0