Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

multi alertmanager-bot with single telegram token #16

Open
vtolstov opened this issue Mar 20, 2018 · 9 comments
Open

multi alertmanager-bot with single telegram token #16

vtolstov opened this issue Mar 20, 2018 · 9 comments

Comments

@vtolstov
Copy link
Contributor

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 ?

@metalmatze
Copy link
Owner

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.

@maxpain
Copy link

maxpain commented Aug 4, 2020

I have the same problem

@vtolstov
Copy link
Contributor Author

vtolstov commented Aug 4, 2020

i'm contact telegram team and the best way to create application tokens and use it for bots ( https://my.telegram.org/apps )

@maxpain
Copy link

maxpain commented Aug 4, 2020

@vtolstov can you please describe your approach?

@vtolstov
Copy link
Contributor Author

vtolstov commented Aug 4, 2020

when you use application token each app with token from telegram POV is the different client, so you can distinguish it and control

@timmy59100
Copy link

@vtolstov Could you please describe that some more? I don't get which token you generate how?

@vtolstov
Copy link
Contributor Author

Try to check web page from telegram where you can get app keys

@timmy59100
Copy link

@vtolstov Do you mean this? I can generate only one app. And api_hash is the token for alermanager-bot?
image

@vtolstov
Copy link
Contributor Author

Yes, try to connect with two apps with the same keys, it must looks like different clients

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants