瀏覽代碼

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

pull/133/head
Petr Michalec 7 年之前
父節點
當前提交
ef291d3d85
共有 2 個檔案被更改,包括 11 行新增0 行删除
  1. +10
    -0
      linux/meta/prometheus.yml
  2. +1
    -0
      linux/meta/telegraf.yml

+ 10
- 0
linux/meta/prometheus.yml 查看文件

@@ -22,6 +22,16 @@ server:
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 }}.'
{% 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:
if: 'disk_used_percent >= 99 and disk_inodes_total > 0'
{% raw %}

+ 1
- 0
linux/meta/telegraf.yml 查看文件

@@ -22,3 +22,4 @@ agent:
processes:
swap:
system:
linux_sysctl_fs:

Loading…
取消
儲存