Skip to content

Commit

Permalink
fix: 🐛 Fix some alerts duration
Browse files Browse the repository at this point in the history
  • Loading branch information
cmon33 authored and this-is-tobi committed Jul 30, 2024
1 parent c1a4558 commit 42c07b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/sonarqube/templates/prometheusrule.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
pod=~"sonarqube-.*",
container="sonarqube",
namespace="{{ dsc.sonarqube.namespace }}"}) == 0
for: 1m
for: 5m
labels:
severity: critical
- alert: SonarQube DB not available
Expand All @@ -36,7 +36,7 @@ spec:
or sum(kube_pod_container_status_ready{
pod=~"pg-cluster-sonar-\\d+",
container="postgres", namespace="{{ dsc.sonarqube.namespace }}"}) == 0
for: 1m
for: 5m
labels:
severity: critical
- alert: Sonarqube DB Pods not healthy
Expand All @@ -47,7 +47,7 @@ spec:
sum(kube_pod_container_status_ready{
pod=~"pg-cluster-sonar-\\d+",
container="postgres", namespace="{{ dsc.sonarqube.namespace }}"}) < 3 > 0
for: 1m
for: 5m
labels:
severity: warning
- alert: SonarQube DB PVC almost out of disk space
Expand Down

0 comments on commit 42c07b5

Please sign in to comment.