Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding uptime-checks-workload.v1.json #699

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions alerts/google-gke/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,7 @@ alert_policy_templates:
id: restarts-containers-within-workload
description: "Alerts if a container restarts within a 5 minute window"
version: 1
-
id: uptime-checks
description: "Alerts if an uptime check fails"
version: 1
30 changes: 30 additions & 0 deletions alerts/google-gke/uptime-checks.v1.json
nikitajainn-google marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"displayName": "${CLUSTER_NAME}/${WORKLOAD_NAME} GKE Load Balancer Check uptime failure"
"documentation": {},
"userLabels": {},
nikitajainn-google marked this conversation as resolved.
Show resolved Hide resolved
"conditions": [
{
"conditionThreshold": {
"aggregations": [
{
"alignmentPeriod": "1200s",
"perSeriesAligner": "ALIGN_NEXT_OLDER",
"crossSeriesReducer": "REDUCE_COUNT_FALSE",
}
],
"comparison": "COMPARISON_GT",
"duration": "${UPTIME_DURATION}",
"filter": "metric.type=\"monitoring.googleapis.com/uptime_check/check_passed\" AND metric.label.check_id=\"${UPTIME_CHECK_ID}\" AND resource.type=\"k8s_service\"",
"thresholdValue": 1,
"trigger": {
"count": 1
}
}
}
],
"alertStrategy": {
"autoClose": "604800s"
},
"combiner": "OR",
"enabled": true,
}