This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".
Start a fresh conversation. Replace the highlighted placeholders.
Use gcloud-usage to investigate [GCP service and project] for [incident or symptom] during [time window], correlating metrics, logs, traces, and resource logs to identify likely causes and recommended next actions.
Required inputs
[GCP service and project]
[incident or symptom]
[time window]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: gcloud-usagedescription: This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".
GCP Observability Best Practices
Structured Logging
JSON Log Format
Use structured JSON logging for better queryability:
# By severity
severity >= WARNING
# By resource
resource.type="cloud_run_revision"
resource.labels.service_name="my-service"
# By time
timestamp >= "2025-01-15T00:00:00Z"
# By text content
textPayload =~ "error.*timeout"
# By JSON field
jsonPayload.user_id = "123"
# Combined
severity >= ERROR AND resource.labels.service_name="api"