Skip to content

Commit

Permalink
common/prometheus-server: add new alert label incident_group_key
Browse files Browse the repository at this point in the history
Introducing a new alert label that makes it possible to group alerts in ServiceNow by alertname, region and cluster. This ensures that multiple incidents are no longer generated for one alert, which also led to multiple tickets and notifications etc.
  • Loading branch information
richardtief committed May 30, 2024
1 parent 3d8ffb8 commit 0595d63
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions common/prometheus-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 7.5.9

* Introducing a new alert label `incident_group_key` that makes it possible to group alerts in ServiceNow by alertname, region and cluster.

## 7.5.8

* Lower default retention time

## 7.5.7

* softening VPA alerts
Expand Down
2 changes: 1 addition & 1 deletion common/prometheus-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus via operator.
name: prometheus-server
version: 7.5.8
version: 7.5.9
appVersion: v2.47.2
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
maintainers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
- action: replace
target_label: cluster
replacement: {{ if $root.Values.global.cluster }}{{ $root.Values.global.cluster }}{{ else }}{{ $root.Values.global.region }}{{ end }}

- action: replace
source_labels: [alertname]
target_label: incident_group_key
replacement: {{ printf "%s_%s_$1" $root.Values.global.region ($root.Values.global.cluster | default $root.Values.global.region) }}

0 comments on commit 0595d63

Please sign in to comment.