Skip to content

Commit 3ad8972

Browse files
authored
Perses: Enhance self alert for Perses (#1297)
* (perses) enhance self alert * (perses) bump plugin definifition
1 parent 8ed38bd commit 3ad8972

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

perses/charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: perses
33
description: A Helm chart for Perses
44
icon: https://avatars.githubusercontent.com/u/77209215?s=200&v=4
55
type: application
6-
version: 0.17.1
6+
version: 0.17.2
77
maintainers:
88
- name: richardtief
99
- name: ibakshay

perses/charts/alerts/perses.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ groups:
1515

1616
- alert: PersesHealthEndpointFailure
1717
annotations:
18-
description: Perses health endpoint hasn't responded with a successful status for 5 minutes.
18+
description: Perses health endpoint hasn't responded with a successful status for 15 minutes.
1919
summary: Perses health endpoint is failing.
2020
expr: |
21-
sum(rate(perses_http_request_total{handler="/perses/api/v1/health",code="200"}[5m])) == 0
21+
sum(rate(perses_http_request_total{handler="{{ .Values.perses.config.api_prefix }}/api/v1/health",code="200"}[5m])) == 0
2222
for: 15m
2323
labels:
2424
severity: warning
@@ -41,22 +41,6 @@ groups:
4141
playbook: https://github.com/cloudoperators/greenhouse-extensions/tree/main/perses/playbooks/playbook.md
4242
{{- include "perses.alertLabels" . | nindent 10 }}
4343

44-
- alert: PersesElevatedHttpLatency
45-
annotations:
46-
description: Perses has a high latency of {{`{{$value}}`}} seconds for API requests.
47-
summary: Perses API response time is high.
48-
expr: |
49-
(
50-
histogram_quantile(0.95, sum by (handler, le) (rate(perses_http_request_duration_second_bucket{handler=~"/perses/api/.*"}[5m]))) > 1
51-
and
52-
sum by (handler) (rate(perses_http_request_duration_second_count{handler=~"/perses/api/.*"}[5m])) > 0
53-
)
54-
for: 10m
55-
labels:
56-
severity: warning
57-
playbook: https://github.com/cloudoperators/greenhouse-extensions/tree/main/perses/playbooks/playbook.md
58-
{{- include "perses.alertLabels" . | nindent 10 }}
59-
6044
- alert: PersesPluginSchemaLoadFailures
6145
annotations:
6246
description: Perses failed to load plugin schemas {{`{{$value}}`}} times.

perses/plugindefinition.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ kind: PluginDefinition
33
metadata:
44
name: perses
55
spec:
6-
version: 0.10.0
6+
version: 0.10.1
77
displayName: Perses
88
description: "Perses is a dashboard tooling to visualize metrics and traces produced by observability tools such as Prometheus/Thanos/Jaeger"
99
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/README.md
1010
icon: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/logo.png
1111
helmChart:
1212
name: perses
1313
repository: oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
14-
version: 0.17.1
14+
version: 0.17.2
1515
options:
1616
- description: "The image version of the Perses app. If not provided, the latest version will be used"
1717
name: perses.image.version

0 commit comments

Comments
 (0)