Browse Source

Merge "Cosmetic changes for alerts"

fix-curl-behind-proxy
Richard Felkl 6 years ago
parent
commit
38727e21df
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      linux/meta/prometheus.yml

+ 12
- 12
linux/meta/prometheus.yml View File

service: system service: system
annotations: annotations:
summary: "{%- endraw %}{{ cpu_usage_threshold }}{%- raw %}% CPU usage" summary: "{%- endraw %}{{ cpu_usage_threshold }}{%- raw %}% CPU usage"
description: "The average CPU usage on the {{ $labels.host }} node is {{ $value }}% for at least 2 minutes."
description: "The average CPU usage on the {{ $labels.host }} node is {{ $value }}% for 2 minutes."
SystemLoadTooHighWarning: SystemLoadTooHighWarning:
{%- endraw %} {%- endraw %}
{%- set load_threshold = monitoring.system_load_threshold.warn|float %} {%- set load_threshold = monitoring.system_load_threshold.warn|float %}
service: system service: system
annotations: annotations:
summary: "System load is {%- endraw %}{{ load_threshold }}{%- raw %}" summary: "System load is {%- endraw %}{{ load_threshold }}{%- raw %}"
description: "System load per CPU on the {{ $labels.host }} node is {{ $value }} for at least 5 minutes."
description: "The system load per CPU on the {{ $labels.host }} node is {{ $value }} for 5 minutes."
SystemLoadTooHighCritical: SystemLoadTooHighCritical:
{%- endraw %} {%- endraw %}
{%- set load_threshold = monitoring.system_load_threshold.crit|float %} {%- set load_threshold = monitoring.system_load_threshold.crit|float %}
service: system service: system
annotations: annotations:
summary: "System load is {%- endraw %}{{ load_threshold }}{%- raw %}" summary: "System load is {%- endraw %}{{ load_threshold }}{%- raw %}"
description: "System load per CPU on the {{ $labels.host }} node is {{ $value }} for at least 5 minutes."
description: "The system load per CPU on the {{ $labels.host }} node is {{ $value }} for 5 minutes."
SystemDiskFullWarning: SystemDiskFullWarning:
{%- endraw %} {%- endraw %}
{%- set disk_threshold = monitoring.disk_usage_percentage.warn|float %} {%- set disk_threshold = monitoring.disk_usage_percentage.warn|float %}
service: system service: system
annotations: annotations:
summary: "Disk partition {{ $labels.path }} is {%- endraw %} {{ disk_threshold }}{%- raw %}% full" summary: "Disk partition {{ $labels.path }} is {%- endraw %} {{ disk_threshold }}{%- raw %}% full"
description: "The disk partition ({{ $labels.path }}) on the {{ $labels.host }} node is {{ $value }}% full for at least 2 minutes."
description: "The disk partition ({{ $labels.path }}) on the {{ $labels.host }} node is {{ $value }}% full for 2 minutes."
SystemDiskFullMajor: SystemDiskFullMajor:
{%- endraw %} {%- endraw %}
{%- set disk_threshold = monitoring.disk_usage_percentage.major|float %} {%- set disk_threshold = monitoring.disk_usage_percentage.major|float %}
service: system service: system
annotations: annotations:
summary: "Disk partition {{ $labels.path }} is {%- endraw %} {{ disk_threshold }}{%- raw %}% full" summary: "Disk partition {{ $labels.path }} is {%- endraw %} {{ disk_threshold }}{%- raw %}% full"
description: "The disk partition ({{ $labels.path }}) on the {{ $labels.host }} node is {{ $value }}% full for at least 2 minutes."
description: "The disk partition ({{ $labels.path }}) on the {{ $labels.host }} node is {{ $value }}% full for 2 minutes."
SystemDiskInodesFullWarning: SystemDiskInodesFullWarning:
{%- endraw %} {%- endraw %}
{%- set inodes_threshold = monitoring.inodes_usage_percentage.warn|float %} {%- set inodes_threshold = monitoring.inodes_usage_percentage.warn|float %}
service: system service: system
annotations: annotations:
summary: "{{ inodes_threshold }}{%- raw %}% of inodes for {{ $labels.path }} are used" summary: "{{ inodes_threshold }}{%- raw %}% of inodes for {{ $labels.path }} are used"
description: "The {{ $labels.host }} node uses {{ $value }}% of disk inodes in the {{ $labels.path }} volume for at least 2 minutes."
description: "The {{ $labels.host }} node uses {{ $value }}% of disk inodes in the {{ $labels.path }} volume for 2 minutes."
SystemDiskInodesFullMajor: SystemDiskInodesFullMajor:
{%- endraw %} {%- endraw %}
{%- set inodes_threshold = monitoring.inodes_usage_percentage.major|float %} {%- set inodes_threshold = monitoring.inodes_usage_percentage.major|float %}
service: system service: system
annotations: annotations:
summary: "{{ inodes_threshold }}{%- raw %}% of inodes for {{ $labels.path }} are used" summary: "{{ inodes_threshold }}{%- raw %}% of inodes for {{ $labels.path }} are used"
description: "The {{ $labels.host }} node uses {{ $value }}% of disk inodes in the {{ $labels.path }} volume for at least 2 minutes."
description: "The {{ $labels.host }} node uses {{ $value }}% of disk inodes in the {{ $labels.path }} volume for 2 minutes."
SystemDiskErrorsTooHigh: SystemDiskErrorsTooHigh:
if: >- if: >-
increase(hdd_errors_total[1m]) > 0 increase(hdd_errors_total[1m]) > 0
service: system service: system
annotations: annotations:
summary: "Disk {{ $labels.device }} is failing" summary: "Disk {{ $labels.device }} is failing"
description: "The {{ $labels.device }} disk on the {{ $labels.host }} node is reporting errors for at least 5 minutes."
description: "The {{ $labels.device }} disk on the {{ $labels.host }} node is reporting errors for 5 minutes."
SystemMemoryFullWarning: SystemMemoryFullWarning:
{%- endraw %} {%- endraw %}
{%- set mem_threshold = monitoring.memory_usage_percentage.warn|float %} {%- set mem_threshold = monitoring.memory_usage_percentage.warn|float %}
service: system service: system
annotations: annotations:
summary: "{{ mem_threshold }}{%- raw %}% of memory is used" summary: "{{ mem_threshold }}{%- raw %}% of memory is used"
description: "The {{ $labels.host }} node uses {{ $value }}% of memory for at least 2 minutes."
description: "The {{ $labels.host }} node uses {{ $value }}% of memory for 2 minutes."
SystemMemoryFullMajor: SystemMemoryFullMajor:
{%- endraw %} {%- endraw %}
{%- set mem_threshold = monitoring.memory_usage_percentage.major|float %} {%- set mem_threshold = monitoring.memory_usage_percentage.major|float %}
service: system service: system
annotations: annotations:
summary: "{{ mem_threshold }}{%- raw %}% of memory is used" summary: "{{ mem_threshold }}{%- raw %}% of memory is used"
description: "The {{ $labels.host }} node uses {{ $value }}% of memory for at least 2 minutes."
description: "The {{ $labels.host }} node uses {{ $value }}% of memory for 2 minutes."
SystemSwapFullWarning: SystemSwapFullWarning:
{%- endraw %} {%- endraw %}
{%- set swap_threshold = monitoring.swap_usage_percentage.warn|float %} {%- set swap_threshold = monitoring.swap_usage_percentage.warn|float %}
service: system service: system
annotations: annotations:
summary: "{{ swap_threshold }}{%- raw %}% of swap is used" summary: "{{ swap_threshold }}{%- raw %}% of swap is used"
description: "The swap on the {{ $labels.host }} node is {{ $value }}% used for at least 2 minutes."
description: "The swap on the {{ $labels.host }} node is {{ $value }}% used for 2 minutes."
SystemSwapFullMinor: SystemSwapFullMinor:
{%- endraw %} {%- endraw %}
{%- set swap_threshold = monitoring.swap_usage_percentage.minor|float %} {%- set swap_threshold = monitoring.swap_usage_percentage.minor|float %}
service: system service: system
annotations: annotations:
summary: "{{ swap_threshold }}{%- raw %}% of swap is used" summary: "{{ swap_threshold }}{%- raw %}% of swap is used"
description: "The swap on the {{ $labels.host }} node is {{ $value }}% used for at least 2 minutes."
description: "The swap on the {{ $labels.host }} node is {{ $value }}% used for 2 minutes."
SystemRxPacketsDroppedTooHigh: SystemRxPacketsDroppedTooHigh:
{%- endraw %} {%- endraw %}
{%- set net_rx_dropped_threshold = monitoring.rx_packets_dropped_threshold.warn %} {%- set net_rx_dropped_threshold = monitoring.rx_packets_dropped_threshold.warn %}

Loading…
Cancel
Save