Skip to content

Commit

Permalink
Add alert for altinn topic (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim authored Mar 12, 2024
1 parent 7730a14 commit 1472315
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/alerts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy alerts to NAIS
on:
push:
branches:
- main
paths:
- '.github/workflows/alerts.yaml'
- 'nais/alerts.yaml'
jobs:
apply-alerts:
name: Apply alerts to cluster
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: deploy to prod-gcp
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: nais/alerts.yaml
20 changes: 20 additions & 0 deletions nais/alerts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: syfooppfolgingsplanservice-alerts
namespace: team-esyfo
labels:
team: team-esyfo
spec:
groups:
- name: syfooppfolgingsplanservice-alerts
rules:
- alert: ALTINN KAFKA OPPFOLGINGSPLAN CONSUMER LAG
expr: kafka_consumergroup_group_topic_sum_lag{topic="alf.aapen-altinn-oppfolgingsplan-mottatt-v2", group="lps-oppfolgingsplan-mottak-1"} > 0
for: 15m
annotations:
summary: "lps-oppfolgingsplan-mottak har ukonsumerte Kafkameldinger på Altinn-topic aapen-altinn-oppfolgingsplan-mottatt-v2"
action: "Finn ut hvorfor lps-oppfolgingsplan-mottak har stoppet å konsumere fra topic"
labels:
namespace: team-esyfo
severity: warning

0 comments on commit 1472315

Please sign in to comment.