Skip to content

Commit

Permalink
Rettet feil indentation på labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Oct 5, 2023
1 parent 26b0497 commit 5cd21ef
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .nais/alerting-dolly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ spec:
Alertmanager: '<https://alertmanager.dev-gcp.nav.cloud.nais.io/#/alerts?silenced=false&inhibited=false&active=true&filter=%7Balertname%3D%22dolly-replicas-unavailable%22%2C%20app%3D%22{{ $labels.app }}%22%7D&customGrouping=true|Link>'
Events: `kubectl describe pod -l app={{ $labels.deployment }}`
Logger: `kubectl logs -l app={{ $labels.deployment }}`
labels:
namespace: 'dolly'
severity: 'critical'
labels:
namespace: 'dolly'
severity: 'critical'

- alert: 'dolly-log-errors'
expr: 'sum by (app,namespace) (increase(log_messages_errors{namespace="dolly",level="Error"}[15m]) > 1)'
Expand All @@ -37,9 +37,9 @@ spec:
Events: `kubectl describe pod -l app={{ $labels.app }}`
Logger: `kubectl logs -l app={{ $labels.app }}`
Kibana: `<https://logs.adeo.no/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-30m,to:now))&_a=(columns:!(level,message,envclass,application,pod),filters:!(),grid:(columns:(x_WorkerID:(width:325))),index:'96e648c0-980a-11e9-830a-e17bbd64b4db',interval:auto,query:(language:kuery,query:'namespace:%20%22dolly%22%20AND%20level:%20%22Error%22%20AND%20application:%20%22{{ $labels.app }}%22'),sort:!(!('@timestamp',desc)))|Link>`
labels:
namespace: 'dolly'
severity: 'warning'
labels:
namespace: 'dolly'
severity: 'warning'

- alert: 'dolly-server-http-5xx'
expr: 'sum by (app,namespace) (increase(http_server_requests_seconds_count{namespace="dolly",status=~"^5.."}[15m]) > 5)'
Expand All @@ -51,9 +51,9 @@ spec:
Events: `kubectl describe pod -l app={{ $labels.app }}`
Logger: `kubectl logs -l app={{ $labels.app }}`
Kibana: `<https://logs.adeo.no/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-30m,to:now))&_a=(columns:!(level,message,envclass,application,pod),filters:!(),grid:(columns:(x_WorkerID:(width:325))),index:'96e648c0-980a-11e9-830a-e17bbd64b4db',interval:auto,query:(language:kuery,query:'namespace:%20%22dolly%22%20AND%20level:%20%22Error%22%20AND%20application:%20%22{{ $labels.app }}%22'),sort:!(!('@timestamp',desc)))|Link>`
labels:
namespace: 'dolly'
severity: 'warning'
labels:
namespace: 'dolly'
severity: 'warning'

- alert: 'dolly-client-http-4xx'
expr: 'sum by (app,namespace) (increase(http_client_requests_seconds_count{namespace="dolly",status=~"^4.."}[15m]) > 5)'
Expand All @@ -65,6 +65,6 @@ spec:
Events: `kubectl describe pod -l app={{ $labels.app }}`
Logger: `kubectl logs -l app={{ $labels.app }}`
Kibana: `<https://logs.adeo.no/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-30m,to:now))&_a=(columns:!(level,message,envclass,application,pod),filters:!(),grid:(columns:(x_WorkerID:(width:325))),index:'96e648c0-980a-11e9-830a-e17bbd64b4db',interval:auto,query:(language:kuery,query:'namespace:%20%22dolly%22%20AND%20level:%20%22Error%22%20AND%20application:%20%22{{ $labels.app }}%22'),sort:!(!('@timestamp',desc)))|Link>`
labels:
namespace: 'dolly'
severity: 'warning'
labels:
namespace: 'dolly'
severity: 'warning'

0 comments on commit 5cd21ef

Please sign in to comment.