Saltstack Official Linux Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

53 lines
2.1KB

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