Skip to content

Commit 14ef04f

Browse files
committed
Adds alert to warn for open files being depleted
Change-Id: I87d132ce6473715b0992e561b2855456f24bcb3b
1 parent 6df2612 commit 14ef04f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

linux/meta/prometheus.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ server:
2121
summary: 'Free space for {{ $labels.path }} too low on {{ $labels.host }}'
2222
description: 'The disk partition ({{ $labels.path }}) will be full in less than 8 hours on {{ $labels.host }}.'
2323
{% endraw %}
24+
SystemFreeOpenFilesTooLow:
25+
if: 'predict_linear(linux_sysctl_fs_file_nr[1h], 8*3600) > linux_sysctl_fs_file_max'
26+
{% raw %}
27+
labels:
28+
severity: warning
29+
service: system
30+
annotations:
31+
summary: 'Free open files for {{ $labels.path }} too low on {{ $labels.host }}'
32+
description: 'Host {{ $labels.host }}) will run out of free open files in less than 8 hours.'
33+
{% endraw %}
2434
SystemDiskSpaceFull:
2535
if: 'disk_used_percent >= 99 and disk_inodes_total > 0'
2636
{% raw %}

linux/meta/telegraf.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ agent:
2222
processes:
2323
swap:
2424
system:
25+
linux_sysctl_fs:

0 commit comments

Comments
 (0)