Skip to content

Commit

Permalink
remove 4xx from error counts in alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets committed Oct 16, 2024
1 parent 3dc1817 commit 76cf1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcp/project_setup/alert_policies/response_error_counts.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "${CLOUD_RUN_NAME}-error-response",
"documentation": {
"content": "Rate of 4xx/5xx request responses exceeds 3 per minute",
"content": "Rate of 5xx request responses exceeds 3 per minute",
"mimeType": "text/markdown"
},
"userLabels": {},
Expand All @@ -11,7 +11,7 @@
"conditionPrometheusQueryLanguage": {
"duration": "0s",
"evaluationInterval": "30s",
"query": "sum by (service_name) (rate(run_googleapis_com:request_count{monitored_resource=\"cloud_run_revision\", service_name=\"${CLOUD_RUN_NAME}\", response_code_class=~\"4..|5..\"}[1m]) * 60) > 3\n"
"query": "sum by (service_name) (rate(run_googleapis_com:request_count{monitored_resource=\"cloud_run_revision\", service_name=\"${CLOUD_RUN_NAME}\", response_code_class=~\"5..\"}[1m]) * 60) > 3\n"
}
}
],
Expand Down

0 comments on commit 76cf1d4

Please sign in to comment.