Saltstack Official Linux Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 %}