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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
7010e321
Commit
7010e321
authored
7 years ago
by
Zachary Yonash
Committed by
Frederic Branczyk
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added a few extra node rules (#478)
parent
5b93d32b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/prometheus/rules/node.rules
+32
-0
32 additions, 0 deletions
assets/prometheus/rules/node.rules
manifests/prometheus/prometheus-k8s-rules.yaml
+32
-0
32 additions, 0 deletions
manifests/prometheus/prometheus-k8s-rules.yaml
with
64 additions
and
0 deletions
assets/prometheus/rules/node.rules
+
32
−
0
View file @
7010e321
...
@@ -8,3 +8,35 @@ ALERT NodeExporterDown
...
@@ -8,3 +8,35 @@ ALERT NodeExporterDown
summary = "node-exporter cannot be scraped",
summary = "node-exporter cannot be scraped",
description = "Prometheus could not scrape a node-exporter for more than 10m, or node-exporters have disappeared from discovery.",
description = "Prometheus could not scrape a node-exporter for more than 10m, or node-exporters have disappeared from discovery.",
}
}
ALERT K8SNodeOutOfDisk
IF kube_node_status_out_of_disk{condition="true"} == 1
LABELS {
service = "k8s",
severity = "critical"
}
ANNOTATIONS {
summary = "Node ran out of disk space.",
description = "{{ $labels.node }} has run out of disk space.",
}
ALERT K8SNodeMemoryPressure
IF kube_node_status_memory_pressure{condition="true"} == 1
LABELS {
service = "k8s",
severity = "warning"
}
ANNOTATIONS {
summary = "Node is under memory pressure.",
description = "{{ $labels.node }} is under memory pressure.",
}
ALERT K8SNodeDiskPressure
IF kube_node_status_disk_pressure{condition="true"} == 1
LABELS {
service = "k8s",
severity = "warning"
}
ANNOTATIONS {
summary = "Node is under disk pressure.",
description = "{{ $labels.node }} is under disk pressure.",
}
This diff is collapsed.
Click to expand it.
manifests/prometheus/prometheus-k8s-rules.yaml
+
32
−
0
View file @
7010e321
...
@@ -582,6 +582,38 @@ data:
...
@@ -582,6 +582,38 @@ data:
summary = "node-exporter cannot be scraped",
summary = "node-exporter cannot be scraped",
description = "Prometheus could not scrape a node-exporter for more than 10m, or node-exporters have disappeared from discovery.",
description = "Prometheus could not scrape a node-exporter for more than 10m, or node-exporters have disappeared from discovery.",
}
}
ALERT K8SNodeOutOfDisk
IF kube_node_status_out_of_disk{condition="true"} == 1
LABELS {
service = "k8s",
severity = "critical"
}
ANNOTATIONS {
summary = "Node ran out of disk space.",
description = "{{ $labels.node }} has run out of disk space.",
}
ALERT K8SNodeMemoryPressure
IF kube_node_status_memory_pressure{condition="true"} == 1
LABELS {
service = "k8s",
severity = "warning"
}
ANNOTATIONS {
summary = "Node is under memory pressure.",
description = "{{ $labels.node }} is under memory pressure.",
}
ALERT K8SNodeDiskPressure
IF kube_node_status_disk_pressure{condition="true"} == 1
LABELS {
service = "k8s",
severity = "warning"
}
ANNOTATIONS {
summary = "Node is under disk pressure.",
description = "{{ $labels.node }} is under disk pressure.",
}
prometheus.rules
:
|+
prometheus.rules
:
|+
ALERT FailedReload
ALERT FailedReload
IF prometheus_config_last_reload_successful == 0
IF prometheus_config_last_reload_successful == 0
...
...
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