-
Notifications
You must be signed in to change notification settings - Fork 148
send 2 telegram group #61
Comments
Could you please elaborate on what your problem is? |
yes, other jobs and channels telegram. |
Sorry, you really need to provide more information, otherwise I can't help you. |
Raised two telegrams bot and created two different groups to send to colleagues. The problem is that I cannot make routing alerts from productive servers to bot 1 telegrams, and test servers to bot 2 telegrams. These are two different bots for different groups in a cart. How to configure config? |
Сonf alertmanager.yml: route:
receiver: 'alertmananger-bot'
routes:
- match:
env: dev
receiver: alertmananger-bot2
- receiver: 'alertmananger-bot'
group_wait: 30s
repeat_interval: 24h
group_interval: 30s
templates:
- '/data/monitoring/alertmanager/alert.tmpl'
receivers:
- name: 'alertmananger-bot'
webhook_configs:
- send_resolved: true
url: 'http://alertmanager-bot:8080'
- name: 'alertmananger-bot2'
webhook_configs:
- send_resolved: true
url: 'http://alertmanager-bot:8085' No work alert telegram http://alertmanager-bot:8085, help me? logs no error |
level=error ts=2019-05-30T06:50:38.552339888Z caller=dispatch.go:264 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="Post http://alertmanager-bot:8085: dial tcp 172.18.0.6:8085: connect: connection refused" find error logs alertmanager. Help me |
Seems like http://alertmanager-bot is not a valid DNS name. You need to put something in that the container is able to resolve. |
route:
|
If i get @sandr30's original idea right, the possibility to get a single instance of the bot to forward notifications to different users / groups depending on labels or parameters would be great. My use case are different groups of people with different responsibilities, e.g. the network team isn't interested in a server's drive running out of space. |
@thewilli, I see. I am a bit hesitant to put routing into the bot itself, when Alertmanager solves that problem already. Really not sure how to properly deal with that. Maybe we can send some additional information from Alertmanager to the bot, to still do most of the routing in Alertmanager. |
Sure, one shouldn't reeinvent the wheel. I'd just make use of labels: The Alertmanager includes all labels in the POST request. The
What do you think? |
metalmatze alertmanager bot alert job1 send Telegram channel1 and alert job2 send Telegram channel2? help me!
The text was updated successfully, but these errors were encountered: