英文:
prometheus alert manager how to ungroup alerts
问题
我需要将通过prometheus/alertmanager发送的警报解除分组以发送到电子邮件。如果我理解正确,alertmanager的理念是不解除警报分组,但我需要这样做,是否有根据时间戳或其他方式来实现的方法?
提前致谢。
英文:
I need to ungroup the alerts send through prometheus/alertmanager to an email. If I had understood well it is against the philosophy of alertmanager to ungroup alerts, but I need it, is there anyway to do it based on the timestamp or something else ???
Thank you in advance.
答案1
得分: 1
你可以使用 "group_by" 选项来设置警报的分组方式,也可以完全禁用聚合,将所有警报原样传递,如下所示:
group_by: ['...']
请参阅 Alertmanager 文档1。
英文:
You can use the "group_by" option to set how alerts will be grouped, and you can disable aggregation entirely, passing through all alerts as-is with:
group_by: ['...']
See the Alertmanager documentation here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论