在使用Argo时,有时会出现通知已经被发送的问题,可能是由于通知被重复发送或者由于Argo使用的时间戳和Prometheus的时间戳不一致造成的。解决方法如下:
例如:
alert: HighMemoryUsage expr: node_memory_Active / node_memory_MemTotal > 0.8 annotations: summary: "Memory usage is high" labels: severity: page
annotations: deduplication: "[{{ .Labels.alertname }}]"
例如:将Prometheus的时间戳格式修改为与Argo相同的格式(以UTC为例):
scrape_configs:
以上方法可以有效解决Argo通知已发送的条件问题。
下一篇:Argo通知已发送问题