Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7029c71

Browse files
authoredJul 14, 2021
Merge pull request #2030 from nerzhul/patch-1
feat(rules): add NodeFileDescriptorLimit kernel exhaustion alert
2 parents 40766fd + 55ffe57 commit 7029c71

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
 

‎docs/node-mixin/alerts/alerts.libsonnet

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,38 @@
277277
description: "At least one device in RAID array on {{ $labels.instance }} failed. Array '{{ $labels.device }}' needs attention and possibly a disk swap.",
278278
},
279279
},
280+
{
281+
alert: 'NodeFileDescriptorLimit',
282+
expr: |||
283+
(
284+
node_filefd_allocated{job="node-exporter"} * 100 / node_filefd_maximum{job="node-exporter"} > 70
285+
)
286+
||| % $._config,
287+
'for': '15m',
288+
labels: {
289+
severity: 'warning',
290+
},
291+
annotations: {
292+
summary: 'Kernel is predicted to exhaust file descriptors limit soon.',
293+
description: 'File descriptors limit at {{ $labels.instance }} is currently at {{ printf "%.2f" $value }}%.',
294+
},
295+
},
296+
{
297+
alert: 'NodeFileDescriptorLimit',
298+
expr: |||
299+
(
300+
node_filefd_allocated{job="node-exporter"} * 100 / node_filefd_maximum{job="node-exporter"} > 90
301+
)
302+
||| % $._config,
303+
'for': '15m',
304+
labels: {
305+
severity: 'critical',
306+
},
307+
annotations: {
308+
summary: 'Kernel is predicted to exhaust file descriptors limit soon.',
309+
description: 'File descriptors limit at {{ $labels.instance }} is currently at {{ printf "%.2f" $value }}%.',
310+
},
311+
},
280312
],
281313
},
282314
],

0 commit comments

Comments
 (0)
Please sign in to comment.