-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e925dc
commit ce1c549
Showing
4 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: "nais.io/v1" | ||
kind: "Alert" | ||
metadata: | ||
name: topic-collector | ||
namespace: dataplattform | ||
labels: | ||
team: dataplattform | ||
spec: | ||
receivers: | ||
slack: | ||
channel: '#nada-airflow-alerts' | ||
prependText: '<!here> | ' | ||
alerts: | ||
- alert: ingress-collector stream restarts too often | ||
expr: increase(ingress_collector_counter_k8s_stream_timeout_total[5m])>10 | ||
for: 1m | ||
description: "{{ $labels.app }} stream restarts to often in namespace {{ $labels.kubernetes_namespace }}" | ||
action: "`kubectl logs {{ $labels.kubernetes_pod_name }} -n {{ $labels.kubernetes_namespace }}`" | ||
- alert: ingress-collector pod restarts too often | ||
expr: increase(kube_pod_container_status_restarts_total{container="ingress-collector", namespace="dataplattform"}[20m])>10 | ||
for: 1m | ||
description: "{{ $labels.app }} pod restarts to often in namespace {{ $labels.kubernetes_namespace }}" | ||
action: "`kubectl describe pod {{ $labels.kubernetes_pod_name }} -n {{ $labels.kubernetes_namespace }}` for events, and `kubectl logs {{ $labels.kubernetes_pod_name }} -n {{ $labels.kubernetes_namespace }}` for logs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters