Skip to content

Commit 9552f20

Browse files
committed
chore: update network alerts with useful information
1 parent 7534d82 commit 9552f20

File tree

2 files changed

+145
-85
lines changed

2 files changed

+145
-85
lines changed

spartan/metrics/grafana/alerts/contactpoints.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ contactPoints:
77
type: slack
88
settings:
99
url: $SLACK_WEBHOOK_URL
10-
disableResolveMessage: false
10+
text: >-
11+
*Alert:* {{ .CommonAnnotations.summary }}
1112
13+
*Grafana overview:*
14+
https://{{ with (first (query "kube_service_status_load_balancer_ingress{service=\"metrics-grafana\"}")) }}{{ if .Labels.ip }}{{ .Labels.ip }}{{ else }}{{ .Labels.hostname }}{{ end }}{{ end }}/d/aztec-network/network-overview?orgId=1&refresh=30s&var-data_source=default&var-namespace={{ urlquery (index .CommonLabels "k8s_namespace_name") }}
15+
16+
*GKE workloads:*
17+
https://console.cloud.google.com/kubernetes/workload/overview?project={{ index .CommonLabels "gcp_project" }}&supportedpurview=project
18+
disableResolveMessage: false

0 commit comments

Comments
 (0)