Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
1.7KB

  1. {% raw %}
  2. server:
  3. alert:
  4. AvgCPUUsageIdle:
  5. if: 'avg_over_time(cpu_usage_idle{cpu="cpu-total"}[5m]) < 10'
  6. labels:
  7. severity: warning
  8. service: system
  9. annotations:
  10. summary: 'Avarage CPU usage (idle) for node {{ $labels.host }} is low'
  11. description: 'Avarage CPU usage (idle) for node {{ $labels.host }} is low {{ $value }}'
  12. PredictLinearDiskFree:
  13. if: 'predict_linear(disk_free[1h], 8*3600) < 0'
  14. labels:
  15. severity: warning
  16. service: system
  17. annotations:
  18. summary: 'Disk space ({{ $labels.path }}) is filling on {{ $labels.host }}'
  19. description: 'Disk space ({{ $labels.path }}) will be full in 8h on {{ $labels.host }}'
  20. PredictLinearDiskInodesFree:
  21. if: 'predict_linear(disk_inodes_free[1h], 8*3600) < 0'
  22. labels:
  23. severity: warning
  24. service: system
  25. annotations:
  26. summary: 'Disk inodes ({{ $labels.path }}) are filling on {{ $labels.host }}'
  27. description: 'Disk inodes ({{ $labels.path }}) will be full in 8h on {{ $labels.host }}'
  28. AvgMemAvailablePercent:
  29. if: 'avg_over_time(mem_available_percent[5m]) < 10'
  30. labels:
  31. severity: warning
  32. service: system
  33. annotations:
  34. summary: 'Free memory is low on {{ $labels.host }}'
  35. description: 'Free memory percent for node {{ $labels.host }} is low {{ $value }}'
  36. SystemLoad5:
  37. if: 'system_load5 / system_n_cpus > 3'
  38. labels:
  39. severity: warning
  40. service: system
  41. annotations:
  42. summary: 'High system load (5m) on {{ $labels.host }}'
  43. description: 'High system load (5m) on node {{ $labels.host }}'
  44. {% endraw %}