Skip to content

Commit a4734f2

Browse files
authored
Merge pull request #81 from statisticsnorway/add-am-config
Use AlertManager config
2 parents a2ebb3d + 16d78e4 commit a4734f2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/alert-deploy.yml

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- '.nais/alerts.yaml'
1010
- '.github/workflows/alert-deploy.yml'
11+
workflow_dispatch:
1112
permissions:
1213
id-token: write
1314

@@ -24,6 +25,10 @@ jobs:
2425
CLUSTER: test
2526
RESOURCE: .nais/alerts.yaml
2627
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
28+
- name: Deploy AlertManager config
29+
uses: statisticsnorway/dapla-stat-iac/.github/workflows/reusable/alertconfig_deploy.yaml@main
30+
with:
31+
cluster: test
2732

2833
prod-deploy:
2934
name: Deploy alerts to prod
@@ -37,3 +42,7 @@ jobs:
3742
CLUSTER: prod
3843
RESOURCE: .nais/alerts.yaml
3944
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
45+
- name: Deploy AlertManager config
46+
uses: statisticsnorway/dapla-stat-iac/.github/workflows/reusable/alertconfig_deploy.yaml@main
47+
with:
48+
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)