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.
Pytest is used for testing. Run test cases with
pytest test_glue.py
Send a single alert.
curl -X POST -H "Content-Type: application/json" \
-d @fixtures/alerts.json \
'http://127.0.0.1:5000/alerts'
Set the following environment variables to configure signal.
SIGNAL_URL
SIGNAL_RECEIPIENTS
SIGNAL_NUMBER
Start the daemon
python glue.py