AWS API Gateway 5XX Error Rate and Latency Degradation Sentinel
Audits Amazon API Gateway CloudWatch metrics to detect 5XX server errors and integration latency spikes impacting REST/HTTP APIs.
Audits GCP Filestore NFS instances via Cloud Monitoring to detect disk capacity exhaustion, delivering proactive scaling alerts to SREs via Slack.
Enterprise software architectures and high-performance computing workloads hosted on Google Cloud rely on Google Cloud Filestore for fully managed, multi-writer Network Attached Storage (NFSv3). Filestore instances power persistent volume claims (PVCs) across Google Kubernetes Engine (GKE) clusters, shared application media directories, and analytics scratch spaces. However, when shared volumes fill up due to log explosion, temporary model checkpoint dumps, or uncompressed database exports, the NFS file server refuses new write operations with No space left on device (ENOSPC) errors. When stateful Kubernetes pods encounter a full NFS volume, write threads block indefinitely, causing health checks to fail and pods to enter crash loops. This watchdog queries Google Cloud Monitoring hourly for the nfs/server/used_bytes_percent metric, detects when disk usage crosses 85%, and notifies DevOps on Slack with exact gcloud filestore instances update expansion commands before production outages occur.
0 * * * *) or runs on-demand via manual execution.file.googleapis.com/nfs/server/used_bytes_percent on the target instance.max_disk_usage_percent_threshold.io.kestra.plugin.core.flow.If flowable checks if capacity limits are breached and dispatches a Slack incident card.flowchart TD
A[hourly_filestore_capacity_audit Schedule Trigger] --> B[scan_filestore_capacity Python Script]
B --> C[check_capacity_exhaustion Flowable If]
C -- Capacity Limit Breached --> D[notify_slack_storage_exhaustion Webhook]
C -- Storage Nominal --> E[log_storage_health_state Log]
D --> E
E --> F[export_filestore_manifest Return]
gcloud expansion commands.While Google Cloud Monitoring provides alerting policies, integrating storage utilization into unified multi-cloud operations and ChatOps workflows requires flexible orchestration. Kestra queries GCP Monitoring APIs securely, evaluates custom capacity thresholds, formats actionable incident cards, and can trigger automated storage expansion. With Kestra's containerized Python runner and native secret management, teams manage cloud storage reliability without deploying brittle custom daemons.
| Name | Type | Default | Description |
|---|---|---|---|
gcp_project_id |
STRING |
company-prod-infrastructure |
Google Cloud project identifier where the Filestore instance is provisioned. |
filestore_instance_id |
STRING |
shared-nfs-filestore-01 |
Unique identifier of the target GCP Filestore instance to audit. |
max_disk_usage_percent_threshold |
FLOAT |
85.0 |
Maximum allowable disk space utilization percentage before triggering capacity warnings. |
alert_on_exhaustion |
BOOL |
true |
Whether to dispatch automated Slack incident notifications when Filestore disk capacity exceeds safety limits. |
{{ outputs.scan_filestore_capacity.vars.instance_id }}: Identifier of the evaluated Filestore instance.{{ outputs.scan_filestore_capacity.vars.used_percent }}: Current disk space utilization percentage.{{ outputs.scan_filestore_capacity.vars.is_exhausted }}: Boolean flag indicating whether the disk utilization breached safety limits.{{ outputs.export_filestore_manifest.value }}: Structured dictionary containing the consolidated Filestore diagnostic manifest.roles/monitoring.viewer permissions.GCP_SERVICE_ACCOUNT_KEY: Service account credentials JSON with permissions to query Cloud Monitoring metrics.SLACK_WEBHOOK_URL: Slack Incoming Webhook URL used to dispatch storage capacity alerts.GCP_SERVICE_ACCOUNT_KEY and SLACK_WEBHOOK_URL in your Kestra secret storage.company.cloud namespace.gcp_project_id and filestore_instance_id with your GCP project and instance names.monitoring.timeSeries.list permission on the project; missing permissions cause 403 Forbidden errors.gcloud filestore instances update to dynamically increase storage capacity when disk usage hits 90%.io.kestra.plugin.core.flow.ForEach loop to scan all Filestore instances across multiple Google Cloud projects.