summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-07-18 00:33:35 +0300
committerGitHub <noreply@github.com>2023-07-18 00:33:35 +0300
commitb3d90d5b4bf2793ad1fba7442f2c70728904e06b (patch)
treec66a4d7b9c8cb83af5123764b973195017c5b10e /health
parent24cf0c721a40a845c43b231b2f4ded658d060354 (diff)
monitor applications file descriptor limits (#15417)
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Diffstat (limited to 'health')
-rw-r--r--health/Makefile.am1
-rw-r--r--health/health.d/file_descriptors.conf30
2 files changed, 31 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am
index 0ef55c75e2..20e0008602 100644
--- a/health/Makefile.am
+++ b/health/Makefile.am
@@ -44,6 +44,7 @@ dist_healthconfig_DATA = \
health.d/elasticsearch.conf \
health.d/entropy.conf \
health.d/exporting.conf \
+ health.d/file_descriptors.conf \
health.d/geth.conf \
health.d/ioping.conf \
health.d/gearman.conf \
diff --git a/health/health.d/file_descriptors.conf b/health/health.d/file_descriptors.conf
new file mode 100644
index 0000000000..76f775fd4b
--- /dev/null
+++ b/health/health.d/file_descriptors.conf
@@ -0,0 +1,30 @@
+ # you can disable an alarm notification by setting the 'to' line to: silent
+
+ template: system_file_descriptors_utilization
+ on: system.file_nr_utilization
+ class: Utilization
+ type: System
+ component: Processes
+ hosts: *
+ lookup: max -1m unaligned
+ units: %
+ every: 1m
+ crit: $this > 90
+ delay: down 15m multiplier 1.5 max 1h
+ info: system-wide utilization of open files
+ to: sysadmin
+
+ template: apps_group_file_descriptors_utilization
+ on: apps.fd_limit
+ class: Utilization
+ type: System
+component: Process
+ os: linux
+ hosts: *
+ lookup: max -1m unaligned foreach *
+ units: %
+ every: 1m
+ warn: $this > (($status >= $WARNING) ? (85) : (90))
+ delay: down 15m multiplier 1.5 max 1h
+ info: maximum utilization of open files among all application group PIDs
+ to: sysadmin