Does anyone use Prometheus webhook notifications with XMPP, specifically Prosody? There seem to be several ways of doing it but I'm struggling to get any of them to work. Any help would be welcome. TIA #prometheus #xmpp #webhook #prosodyim
Simon Greenwood GoToSocial Actor feed
Does anyone use Prometheus webhook notifications with XMPP, specifically Prosody
Comments
achim@mastodon.weindl.biz 2 days ago Is this still open?
The usual flow would be:
A. Existing XMPP webhook bridge
Prometheus -> Alertmanager -> webhook bridge -> Prosody -> DM/MUC
Probably the simplest option; there are ready-made Alertmanager-to-XMPP receivers.
B. Small custom receiver
Prometheus -> Alertmanager -> own HTTP script/service -> Prosody -> DM/MUC
A tiny Python/Go/Node service receives the Alertmanager JSON and sends a formatted XMPP message as a dedicated bot user.
C. Prosody PubSub
Prometheus -> Alertmanager -> Prosody mod_pubsub_alertmanager -> PubSub node -> subscribers
This is useful if you specifically want XMPP PubSub events rather than normal chat messages.
What does your current setup/look like, which of these approaches have you tried, and at which step does it fail? Alertmanager delivery, the webhook receiver, XMPP authentication/TLS, or posting to the MUC?