Skip to content

Commit

Permalink
fix prometheus rule
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Aug 28, 2023
1 parent e4954cd commit 530c913
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion plural/helm/plural/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: plural
description: A helm chart for installing plural
appVersion: 0.10.50
version: 0.10.51
version: 0.10.52
dependencies:
- name: hydra
version: 0.26.5
Expand Down
36 changes: 16 additions & 20 deletions plural/helm/plural/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,37 @@ spec:
for: 5m
labels:
severity: critical
labels:
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural db replicas are up
description: Validate there are not any issues in the cluster or database configuration
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural db replicas are up
description: Validate there are not any issues in the cluster or database configuration
- alert: PluralHydraDBUp
expr: sum(up{namespace="plural", pod=~"plural-hydra-[0-9]*"}) < 1
for: 5m
labels:
severity: critical
labels:
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural hydra db replicas are up
description: Validate there are not any issues in the cluster or database configuration
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural hydra db replicas are up
description: Validate there are not any issues in the cluster or database configuration
- alert: PluralAPIUp
expr: sum(up{namespace="plural", pod=~"plural-api-.*-.*"}) < 1
for: 5m
labels:
severity: critical
labels:
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural api replicas are up
description: validate no code changes are infrastructure issues are causing unavailability
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural api replicas are up
description: validate no code changes are infrastructure issues are causing unavailability
- alert: PluralRtcUp
expr: sum(up{namespace="plural", pod=~"plural-rtc-.*-.*"}) < 1
for: 5m
labels:
severity: critical
labels:
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural rtc replicas are up
description: validate no code changes are infrastructure issues are causing unavailability
namespace: {{ .Release.Namespace }}
annotations:
summary: No plural rtc replicas are up
description: validate no code changes are infrastructure issues are causing unavailability
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
Expand Down

0 comments on commit 530c913

Please sign in to comment.