源文件
gcp/monitoring/policies/concurrency-anomaly.json
离线配置。未部署到任何云账号。
{
"displayName": "insights-api instance and concurrency anomaly",
"combiner": "OR",
"severity": "WARNING",
"enabled": true,
"summary": "Billable instance count at the maxScale cap, or concurrent requests above the container concurrency.",
"documentation": {
"content": "Instance count reached the configured maxScale of 10, or concurrency exceeded the container limit of 80. This is an anomaly signal for the fictional demo service. The policy is not deployed.",
"mimeType": "text/markdown"
},
"conditions": [
{
"displayName": "instance count at maxScale",
"conditionThreshold": {
"filter": "resource.type=\"cloud_run_revision\" AND resource.labels.service_name=\"insights-api\" AND metric.type=\"run.googleapis.com/container/instance_count\"",
"comparison": "COMPARISON_GT",
"thresholdValue": 9,
"duration": "300s",
"aggregations": [
{
"alignmentPeriod": "60s",
"perSeriesAligner": "ALIGN_MAX",
"crossSeriesReducer": "REDUCE_SUM"
}
]
}
}
],
"notificationChannels": [
"projects/thistle-analytics-demo/notificationChannels/placeholder-channel"
]
}