Skip to content

Proof of concept for connecting prometheus alertmanager to signal

Notifications You must be signed in to change notification settings

danielpalstra/prometheus-signal-glue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Proof of concept for connecting prometheus alertmanager to signal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages