Prometheus警报管理器如何取消分组警报

huangapple go评论88阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年3月9日 17:34:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75682720.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定