{"repo":"jelmer/prometheus-xmpp-alerts","free":true,"listed":false,"github":"https://github.com/jelmer/prometheus-xmpp-alerts","clone":"git clone https://github.com/jelmer/prometheus-xmpp-alerts.git","description":"XMPP Web hook for Prometheus","language":"Python","stars":43,"topics":["webhook","xmpp","prometheus","prometheus-alertmanager"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"prometheus-xmpp-alerts ====================== A simple web hook that forwards prometheus alerts over XMPP. Usage ----- To use, configure a web hook in alertmanager. E.g.: Edit the configuration file (defaults to /etc/prometheus/xmpp-alerts.yml ): You can also set the following environment variables instead: XMPP ID - XMPP JID XMPP PASS - Password XMPP RECIPIENTS - comma-separated list of recipients XMPP AMTOOL ALLOWED - comma-separated list of users (optional) WEBHOOK HOST - Address to listen on (optional) WEBHOOK PORT - Port to listen on (optional) TEXT TEMPLATE - Template for text messages (see above, optional) HTML TEMPLATE - Template for HTML messages (see above, optional) And run the web hook:: If you have amtool set up, then you can also allow users to see existing alerts and manage silences. Set the amtool allowed option to JIDs that are allowed to use amtool. Docker file ----------- You can build your own docker images using the Dockerfile in this directory, or use ghcr.io/jelmer/prometheus-xmpp-alerts . Provide your configuration in /config.yaml or through environment variables. Message Format -------------- The default message format looks something like this: FIRING: AlertName at somehost: Alert Summary. https://prometheus.example.com/expr?... The text template option in the configuration can be used to customize the format, using jinja2. Testing ------- The web hook can be accessed on three paths: /alert : used by Prometheus to deliver alerts, expects POST request","default_branch":null,"files":null,"tree":[],"storefront":"/r/jelmer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jelmer/prometheus-xmpp-alerts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}