Open vtolstov opened 6 years ago
For now I'd probably create multiple bots for each data center. I'm not really sure how one can handle this case with Alertmanager itself. It's definitely an interesting use case, I might need to tackle at work too.
I have the same problem
i'm contact telegram team and the best way to create application tokens and use it for bots ( https://my.telegram.org/apps )
@vtolstov can you please describe your approach?
when you use application token each app with token from telegram POV is the different client, so you can distinguish it and control
@vtolstov Could you please describe that some more? I don't get which token you generate how?
Try to check web page from telegram where you can get app keys
@vtolstov Do you mean this? I can generate only one app. And api_hash is the token for alermanager-bot?
Yes, try to connect with two apps with the same keys, it must looks like different clients
I have problem:) i have 4 dc that contains 2 prometheus servers with 2 alertmanager with 2 alertmanager-bots 1 server contains: promethes+alertmanager+alertmanager-bot
but when i'm for example get /alerts command to bot, i'm receive only one answer from one dc. I don't want to create many bots, how can i work with multi dc mode ?