prometheus-xmpp-alerts
prometheus-xmpp-alerts copied to clipboard
MUC
Can I post alerts to chat room with prometheus-xmpp-alerts?
No, posting alerts to mucs is not supported yet.
On 5 March 2019 05:04:41 GMT-08:00, bobykus31 [email protected] wrote:
Can I post alerts to char room with prometheus-xmpp-alerts?
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jelmer/prometheus-xmpp-alerts/issues/7
Would be nice.
FYI, I managed to do it by :
- adding
self.register_plugin('xep_0045')to the__init__method - call
self.plugin['xep_0045'].join_muc(config['to_jid'], "Your nickname")in thestartmethod - replace
mtype='chat'bymtype='groupchat'inserve_testandserve_alertmethods
Of course, you loose the possibility to send alerts to someone in particular but in my case I was only interested in sending alerts to a MUC room.
Hello, added muc support here https://github.com/ichthyx/prometheus-xmpp-alerts I'll do a pr when I have time
This has landed based on @ichthyx changes; closing.