mr-karan / calert

🔔 Send alert notifications to Google Chat via Prometheus Alertmanager
MIT License
158 stars 58 forks source link

Gchat thread doesn't works #61

Closed akolacz closed 8 months ago

akolacz commented 1 year ago

Hi,

Yesterday i did mutiple tests and i have upgraded the version of calert to 2.0.6 to test the new functionality of gchat thread like the following example :

image

but when i have tried to do this with calert and gchat in thread channel gchat (same channel like the example above) it's doesn't works :

image

our configuration alertmanager :

image

our configuration calert :

image

We have try to change the group by to this :

`- receiver: 'google-chat' group_by: [...] matchers:

but nothing changed

if you have any idea or this not yet impleted in calert for this functionality or if it's need a specific configuration.

thank you in advance.

mr-karan commented 1 year ago

GChat Threads is a new feature which only works for spaces created after March 15 2023. I've not had a chance to test them and the same isn't available on cAlert yet.

paulelie commented 1 year ago

@mr-karan @Nakada78 FYI, it works out of the box by adding &messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD to the endpoint property 😃

https://developers.google.com/chat/how-tos/webhooks#start_or_reply_to_a_message_thread

(Nice work by the way ;) )

mr-karan commented 1 year ago

@paulelie Nice spot. Thanks a lot. I'll make the changes to cAlert to add this option shortly.

mr-karan commented 8 months ago

This is done. https://github.com/mr-karan/calert/releases/tag/v2.1.1

https://github.com/mr-karan/calert/issues/74#issuecomment-1993611015