Huawei Cloud Eye (CES) Metric Threshold Health Gate
Query a Huawei Cloud CES metric, classify it against a warning and critical threshold, alert Slack on breach, and optionally publish the check result back to CES.
Monitors Google Cloud Run instance counts against configured maxScale ceilings to detect autoscaling exhaustion.
This workflow executes gcloud monitoring timeseries list to inspect run.googleapis.com/container/instance_count for the specified Cloud Run service. When incoming request concurrency surges beyond capacity and active containers reach the configured maxScale setting, Cloud Run cannot spawn additional container instances. Additional requests queue up until concurrency limits exceed, throwing HTTP 429 or 503 errors. Slack is notified when instances approach 90% of the ceiling.
gcloud run services update --max-instances workflows.GCP_SERVICE_ACCOUNT and SLACK_WEBHOOK configured in Kestra.maxScale via gcloud command upon persistent traffic growth.run.googleapis.com/request_latencies alongside instance counts.