Skip to content

DinoTools/monitoring-prom2icinga2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus to Icinga2 Checks

GitHub issues GitHub forks GitHub stars GitHub license Documentation PyPI - Downloads PyPI - Python Version PyPI - Format PyPI - Status

Warning

Proof of Concept

This project is in an very early stage of development. Don't use it in production.

This tool queries a Prometheus server based on Icinga2 services and reports the check status.

Requirements

  • Python >= 3.8 (It might still run with older versions of Python 3)
  • Python Packages
    • dynaconf
    • fastapi
    • httpx
    • jinja2
    • pyyaml
    • uvicorn

Installation

Docker

docker pull ghcr.io/dinotools/monitoring-prom2icinga2:main
docker run --rm -v ./config.yaml:/etc/prom2icinga2/config.yaml:ro ghcr.io/dinotools/monitoring-prom2icinga2:main

PIP

If you want to use pip we recommend to use as virtualenv to install the dependencies.

pip install -r requirements.txt

Debian/Ubuntu

Install the required packages

sudo apt-get install python3 ?? ToDo ??

From PyPI

Install the package from PyPI.

pip install prom2icinga2

Usage

python3 -m prom2icinga2.server:app --config config.yaml -vv

Resources

License

GPLv3+