/prometheus-signal-glue

Proof of concept for connecting prometheus alertmanager to signal

Primary LanguagePython

Prometheus Signal glue

Small daemon that "glues" together Prometheus Alertmanager webhook messages with signal.org using signal-cli-rest-api. This project is intended as a proof of concept.

The docker directory contains a docker-compose file that can be used to setup a local alertmanager.

Testing

Pytest is used for testing. Run test cases with

pytest test_glue.py

Test webhook

Send a single alert.

curl -X POST -H "Content-Type: application/json" \
-d @fixtures/alerts.json \
'http://127.0.0.1:5000/alerts'

Running

Set the following environment variables to configure signal.

SIGNAL_URL
SIGNAL_RECEIPIENTS
SIGNAL_NUMBER

Start the daemon

python glue.py