Skip to content

Commit ef291d3

Browse files
mk-lab-ciGerrit Code Review
authored andcommitted
Merge "Adds alert to warn for open files being depleted"
2 parents 3a999aa + 14ef04f commit ef291d3

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
@@ -22,6 +22,16 @@ server:
2222
summary: 'Free space for {{ $labels.path }} too low on {{ $labels.host }}'
2323
description: 'The disk partition ({{ $labels.path }}) will be full in less than 8 hours on {{ $labels.host }}.'
2424
{% endraw %}
25+
SystemFreeOpenFilesTooLow:
26+
if: 'predict_linear(linux_sysctl_fs_file_nr[1h], 8*3600) > linux_sysctl_fs_file_max'
27+
{% raw %}
28+
labels:
29+
severity: warning
30+
service: system
31+
annotations:
32+
summary: 'Free open files for {{ $labels.path }} too low on {{ $labels.host }}'
33+
description: 'Host {{ $labels.host }}) will run out of free open files in less than 8 hours.'
34+
{% endraw %}
2535
SystemDiskSpaceFull:
2636
if: 'disk_used_percent >= 99 and disk_inodes_total > 0'
2737
{% 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)