gcp-logs-monitoring

Installation
SKILL.md

Goal

Inspect Cloud Logging and Cloud Monitoring data quickly and repeatably from the terminal.

Inputs to collect (ask only if missing)

  • project_id
  • time_window for investigation (for example: last 30m, 2h, or explicit UTC start/end)
  • service/resource context (cloud_run_revision, k8s_container, gce_instance, load balancer, etc.)
  • signals of interest (errors, latency, CPU, memory, request count, restarts)
  • output_format (table for quick scans, json for deeper analysis)

Execution workflow

  1. Validate prerequisites: bash .agents/skills/gcp-logs-monitoring/scripts/check_prereqs.sh --project <project_id>
  2. Query Cloud Logging: bash .agents/skills/gcp-logs-monitoring/scripts/read_logs.sh --project <project_id> --filter '<LOG_FILTER>' --freshness 1h --limit 100 --format json
  3. Query Cloud Monitoring time series: bash .agents/skills/gcp-logs-monitoring/scripts/read_metrics.sh --project <project_id> --filter '<METRIC_FILTER>' --start <UTC_ISO8601> --end <UTC_ISO8601> --format json
  4. Correlate timestamps between logs and metrics, then summarize likely root cause and next checks.
Installs
45
First Seen
Feb 24, 2026