Skip to content

Commit

Permalink
Merge pull request #81 from statisticsnorway/add-am-config
Browse files Browse the repository at this point in the history
Use AlertManager config
  • Loading branch information
mallport authored Jan 29, 2025
2 parents a2ebb3d + 16d78e4 commit a4734f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/alert-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- '.nais/alerts.yaml'
- '.github/workflows/alert-deploy.yml'
workflow_dispatch:
permissions:
id-token: write

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

prod-deploy:
name: Deploy alerts to prod
Expand All @@ -37,3 +42,7 @@ jobs:
CLUSTER: prod
RESOURCE: .nais/alerts.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
- name: Deploy AlertManager config
uses: statisticsnorway/dapla-stat-iac/.github/workflows/reusable/alertconfig_deploy.yaml@main
with:
cluster: prod
4 changes: 4 additions & 0 deletions .nais/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
labels:
service: maskinporten-guardian
namespace: dapla-stat
alertmanager_custom_config: dapla-stat
alert_type: custom
severity: critical

- alert: Guardian is unavailable
Expand All @@ -30,4 +32,6 @@ spec:
labels:
service: maskinporten-guardian
namespace: dapla-stat
alertmanager_custom_config: dapla-stat
alert_type: custom
severity: critical

0 comments on commit a4734f2

Please sign in to comment.