Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-deploy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
cspp_geo
geosphere
geosphere-deploy
Commits
98705921
Verified
Commit
98705921
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Bump prometheus rules check for a healthy pod to 15m instead of 5m
parent
a937c80f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
admin/README.md
+7
-0
7 additions, 0 deletions
admin/README.md
admin/kubekorner_geosphere_prometheus_rules.yaml
+1
-1
1 addition, 1 deletion
admin/kubekorner_geosphere_prometheus_rules.yaml
with
8 additions
and
1 deletion
admin/README.md
+
7
−
0
View file @
98705921
...
@@ -385,6 +385,13 @@ deploy it by running:
...
@@ -385,6 +385,13 @@ deploy it by running:
kubectl create
-n
monitoring
-f
example_rule.yaml
kubectl create
-n
monitoring
-f
example_rule.yaml
```
```
If you've installed these rules in the past and would like to update them, use
the
``replace``
command instead:
```
bash
kubectl replace
-n
monitoring
-f
example_rule.yaml
```
To investigate if our rules are showing up in Prometheus we can forward the
To investigate if our rules are showing up in Prometheus we can forward the
service to the cluster node and then forward that to our local machine
service to the cluster node and then forward that to our local machine
with SSH. Note you'll need to use the name of your service in your
with SSH. Note you'll need to use the name of your service in your
...
...
This diff is collapsed.
Click to expand it.
admin/kubekorner_geosphere_prometheus_rules.yaml
+
1
−
1
View file @
98705921
...
@@ -436,7 +436,7 @@ spec:
...
@@ -436,7 +436,7 @@ spec:
-
alert
:
KubernetesPodNotHealthy
-
alert
:
KubernetesPodNotHealthy
expr
:
min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[1h:]) >
0
expr
:
min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"})[1h:]) >
0
for
:
5m
for
:
1
5m
labels
:
labels
:
severity
:
critical
severity
:
critical
ruleGroup
:
geosphere-kubernetes
ruleGroup
:
geosphere-kubernetes
...
...
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