Browse Source

Merge "Adds alert to warn for open files being depleted"

pull/133/head
Petr Michalec 7 years ago
parent
commit
ef291d3d85
2 changed files with 11 additions and 0 deletions
  1. +10
    -0
      linux/meta/prometheus.yml
  2. +1
    -0
      linux/meta/telegraf.yml

+ 10
- 0
linux/meta/prometheus.yml View File

summary: 'Free space for {{ $labels.path }} too low on {{ $labels.host }}' summary: 'Free space for {{ $labels.path }} too low on {{ $labels.host }}'
description: 'The disk partition ({{ $labels.path }}) will be full in less than 8 hours on {{ $labels.host }}.' description: 'The disk partition ({{ $labels.path }}) will be full in less than 8 hours on {{ $labels.host }}.'
{% endraw %} {% endraw %}
SystemFreeOpenFilesTooLow:
if: 'predict_linear(linux_sysctl_fs_file_nr[1h], 8*3600) > linux_sysctl_fs_file_max'
{% raw %}
labels:
severity: warning
service: system
annotations:
summary: 'Free open files for {{ $labels.path }} too low on {{ $labels.host }}'
description: 'Host {{ $labels.host }}) will run out of free open files in less than 8 hours.'
{% endraw %}
SystemDiskSpaceFull: SystemDiskSpaceFull:
if: 'disk_used_percent >= 99 and disk_inodes_total > 0' if: 'disk_used_percent >= 99 and disk_inodes_total > 0'
{% raw %} {% raw %}

+ 1
- 0
linux/meta/telegraf.yml View File

processes: processes:
swap: swap:
system: system:
linux_sysctl_fs:

Loading…
Cancel
Save