Skip to content

Commit d72f8e4

Browse files
committed
Add AlertManager config
1 parent 625682c commit d72f8e4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/alert-deploy.yml

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
CLUSTER: test
2525
RESOURCE: .nais/alerts.yaml
2626
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
27+
- name: Deploy AlertManager config
28+
uses: statisticsnorway/dapla-stat-iac/.github/workflows/reusable/alertconfig_deploy.yaml@main
29+
with:
30+
cluster: test
2731

2832
prod-deploy:
2933
name: Deploy alerts to prod
@@ -37,3 +41,7 @@ jobs:
3741
CLUSTER: prod
3842
RESOURCE: .nais/alerts.yaml
3943
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
44+
- name: Deploy AlertManager config
45+
uses: statisticsnorway/dapla-stat-iac/.github/workflows/reusable/alertconfig_deploy.yaml@main
46+
with:
47+
cluster: prod

.nais/alerts.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
labels:
2020
service: maskinporten-guardian
2121
namespace: dapla-stat
22+
alertmanager_custom_config: dapla-stat
23+
alert_type: custom
2224
severity: critical
2325

2426
- alert: Guardian is unavailable
@@ -30,4 +32,6 @@ spec:
3032
labels:
3133
service: maskinporten-guardian
3234
namespace: dapla-stat
35+
alertmanager_custom_config: dapla-stat
36+
alert_type: custom
3337
severity: critical

0 commit comments

Comments
 (0)