Skip to content

Commit

Permalink
Merge pull request #60 from empathyco/chore/cache
Browse files Browse the repository at this point in the history
fix: review alert names
  • Loading branch information
jmsantorum authored May 28, 2024
2 parents f3984d1 + 45593c0 commit 95b5a76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/motive-cache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A Helm chart for Kubernetes

type: application

version: 0.1.3
version: 0.1.4

appVersion: "1.0.0"
2 changes: 1 addition & 1 deletion charts/motive-cache/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# motive-cache

![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
8 changes: 4 additions & 4 deletions charts/motive-cache/templates/prometheus-rule-alerting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
summary: 'Number of Pods == 0'
description: 'Service reports no pods running'

- alert: IndexVarnish-MemoryUsageMoreThan80Percent-{{ include "motive-cache.fullname" . }}
- alert: MemoryUsageMoreThan80Percent-{{ include "motive-cache.fullname" . }}
expr: 100 * (varnish_sma_g_bytes{namespace="{{ $.Release.Namespace }}", pod=~"{{ include "motive-cache.fullname" . }}-.+"} / varnish_sma_g_space{namespace="{{ $.Release.Namespace }}", pod=~"{{ include "motive-cache.fullname" . }}-.+"}) > 80
for: 15m
labels:
Expand All @@ -75,10 +75,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
annotations:
summary: 'Index Varnish - memory usage is above 80%'
summary: 'Varnish - memory usage is above 80%'
description: 'Service reports its memory usage is above 80%'

- alert: IndexVarnish-MemoryUsageMoreThan90Percent-{{ include "motive-cache.fullname" . }}
- alert: MemoryUsageMoreThan90Percent-{{ include "motive-cache.fullname" . }}
expr: 100 * (varnish_sma_g_bytes{namespace="{{ $.Release.Namespace }}", pod=~"{{ include "motive-cache.fullname" . }}-.+"} / varnish_sma_g_space{namespace="{{ $.Release.Namespace }}", pod=~"{{ include "motive-cache.fullname" . }}-.+"}) > 90
for: 5m
labels:
Expand All @@ -93,7 +93,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
annotations:
summary: 'Index Varnish - memory usage is above 90%'
summary: 'Varnish - memory usage is above 90%'
description: 'Service reports its memory usage is above 90%'
# default alerts - END
{{- end }}

0 comments on commit 95b5a76

Please sign in to comment.