prometheus-xmpp-alerts icon indicating copy to clipboard operation
prometheus-xmpp-alerts copied to clipboard

MUC

Open bobykus31 opened this issue 6 years ago • 4 comments

Can I post alerts to chat room with prometheus-xmpp-alerts?

bobykus31 avatar Mar 05 '19 13:03 bobykus31

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

jelmer avatar Mar 05 '19 19:03 jelmer

Would be nice.

genofire avatar Jun 06 '19 02:06 genofire

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 the start method
  • replace mtype='chat' by mtype='groupchat' in serve_test and serve_alert methods

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.

joudinet avatar Mar 30 '23 15:03 joudinet

Hello, added muc support here https://github.com/ichthyx/prometheus-xmpp-alerts I'll do a pr when I have time

ichthyx avatar Jul 01 '23 13:07 ichthyx

This has landed based on @ichthyx changes; closing.

jelmer avatar Sep 18 '24 12:09 jelmer