Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
d728ab55
Commit
d728ab55
authored
7 years ago
by
Ali Rizwan
Committed by
Frederic Branczyk
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Only alert for nodes that currently exist (#1661)
parent
06df9fb6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
jsonnet/kube-prometheus/alerts/node.libsonnet
+2
-2
2 additions, 2 deletions
jsonnet/kube-prometheus/alerts/node.libsonnet
manifests/prometheus-rules.yaml
+2
-2
2 additions, 2 deletions
manifests/prometheus-rules.yaml
with
4 additions
and
4 deletions
jsonnet/kube-prometheus/alerts/node.libsonnet
+
2
−
2
View file @
d728ab55
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
summary
:
'Node disk is running full within 24 hours'
,
summary
:
'Node disk is running full within 24 hours'
,
},
},
expr
:
|||
expr
:
|||
predict_linear(node_filesystem_free{%(nodeExporterSelector)s,mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[6h], 3600 * 24) < 0
predict_linear(node_filesystem_free{%(nodeExporterSelector)s,mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[6h], 3600 * 24) < 0
and on(instance) up{%(nodeExporterSelector)s}
|||
%
$
.
_config
,
|||
%
$
.
_config
,
'for'
:
'30m'
,
'for'
:
'30m'
,
labels
:
{
labels
:
{
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
summary
:
'Node disk is running full within 2 hours'
,
summary
:
'Node disk is running full within 2 hours'
,
},
},
expr
:
|||
expr
:
|||
predict_linear(node_filesystem_free{%(nodeExporterSelector)s,mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[30m], 3600 * 2) < 0
predict_linear(node_filesystem_free{%(nodeExporterSelector)s,mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[30m], 3600 * 2) < 0
and on(instance) up{%(nodeExporterSelector)s}
|||
%
$
.
_config
,
|||
%
$
.
_config
,
'for'
:
'10m'
,
'for'
:
'10m'
,
labels
:
{
labels
:
{
...
...
This diff is collapsed.
Click to expand it.
manifests/prometheus-rules.yaml
+
2
−
2
View file @
d728ab55
...
@@ -744,7 +744,7 @@ spec:
...
@@ -744,7 +744,7 @@ spec:
full within the next 24 hours (mounted at {{$labels.mountpoint}})
full within the next 24 hours (mounted at {{$labels.mountpoint}})
summary
:
Node disk is running full within 24 hours
summary
:
Node disk is running full within 24 hours
expr
:
|
expr
:
|
predict_linear(node_filesystem_free{job="node-exporter",mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[6h], 3600 * 24) < 0
predict_linear(node_filesystem_free{job="node-exporter",mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[6h], 3600 * 24) < 0
and on(instance) up{job="node-exporter"}
for
:
30m
for
:
30m
labels
:
labels
:
severity
:
warning
severity
:
warning
...
@@ -754,7 +754,7 @@ spec:
...
@@ -754,7 +754,7 @@ spec:
full within the next 2 hours (mounted at {{$labels.mountpoint}})
full within the next 2 hours (mounted at {{$labels.mountpoint}})
summary
:
Node disk is running full within 2 hours
summary
:
Node disk is running full within 2 hours
expr
:
|
expr
:
|
predict_linear(node_filesystem_free{job="node-exporter",mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[30m], 3600 * 2) < 0
predict_linear(node_filesystem_free{job="node-exporter",mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[30m], 3600 * 2) < 0
and on(instance) up{job="node-exporter"}
for
:
10m
for
:
10m
labels
:
labels
:
severity
:
critical
severity
:
critical
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment