jaywink / matrix-alertmanager

A bot to receive Alertmanager webhook events and forward them to chosen rooms.
MIT License
76 stars 21 forks source link

Bug: Allow / in receiver from Alertmanager #23

Closed genofire closed 1 month ago

genofire commented 2 years ago

The PrometheusOperator generates receiver ala namespace/config/receiver.

So it is not possible to use this bot.

Solution

PS: Please do not write own way of encoding. Why not put an JSON with

{
  "Receiver Name": "!MatrixRoomName:example.org"
}

in MATRIX_ROOMS ?

https://github.com/jaywink/matrix-alertmanager/blob/ad87955c9f8d4fca67a94d0ed5200daafa82704b/src/utils.js#L12