pushbits / server

A simple server for push notifications via Matrix (and a minimalistic alternative to Pushover and Gotify) 🚀📯
https://www.pushbits.io
ISC License
305 stars 18 forks source link

Add compatability with alertmanager webhooks #48

Closed CubicrootXYZ closed 2 years ago

CubicrootXYZ commented 2 years ago

Alertmanager is a popular alerting gateway especially build for prometheus environments. Grafana, a popular data visualization tool, lately added alertmanager into their product. It allows to send alerts to a generic endpoint as a json-formatted HTTP request.

We could use this to broaden the usecase for PushBits further by adding an endpoint that can handle those alerts and forward them to a matrix channel. This will be quite simple to achieve since we only need to properly parse the alerts and then can throw them into the existing message flow.

Currently one would need to add an additional tool like Alertmanager to Gotify Bridge to the stack.

eikendev commented 2 years ago

Interesting! I think we should assess how complex this turns out to be. If not adding much maintenance overhead, I'm open for supporting this.

eikendev commented 2 years ago

Fixed in dff2a3344248e13be06d3844e21c727541f413e6.