y85.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶、pushgateway和prometheus存储(十六)

12.6 告警抑制与静默

12.6.1 告警抑制

基于告警规则,超过80%就不在发60%的告警,即由60%的表达式触发的告警被抑制了。

root@prometheus1:/apps/prometheus# cat roles/server_roles.yml 
groups:
  - name: alertmanager_pod.rules
    rules:
    - alert: 磁盘容量
      expr: 100-(node_filesystem_free_bytes{
   
    
    fstype=~"ext4|xfs"}/node_filesystem_size_bytes{
   
    
    fstype=~"ext4|xfs"}*100) > 80

猜你喜欢

转载自blog.csdn.net/qq_25599925/article/details/125071044