源文件
gcp/monitoring/policies/uptime-check.json
离线配置。未部署到任何云账号。
{
"displayName": "insights-api uptime check failed",
"combiner": "OR",
"severity": "CRITICAL",
"enabled": true,
"summary": "Uptime check against insights-api.thistle.example /healthz failed.",
"host": "insights-api.thistle.example",
"documentation": {
"content": "The uptime check targets host insights-api.thistle.example on path /healthz. The hostname is a placeholder in the fictional Thistle Analytics demo. This policy is not deployed and does not probe a live host from the portfolio build.",
"mimeType": "text/markdown"
},
"conditions": [
{
"displayName": "uptime check passed is below 1",
"conditionThreshold": {
"filter": "resource.type=\"uptime_url\" AND metric.type=\"monitoring.googleapis.com/uptime_check/check_passed\" AND resource.labels.host=\"insights-api.thistle.example\"",
"comparison": "COMPARISON_LT",
"thresholdValue": 1,
"duration": "300s",
"aggregations": [
{
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_NEXT_OLDER",
"crossSeriesReducer": "REDUCE_COUNT_FALSE"
}
]
}
}
],
"notificationChannels": [
"projects/thistle-analytics-demo/notificationChannels/placeholder-channel"
]
}