gcp-logs-monitoring

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

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gcp-logs-monitoring" with this command: npx skills add bcrema/runwarapp/bcrema-runwarapp-gcp-logs-monitoring

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

  • Validate prerequisites: bash .agents/skills/gcp-logs-monitoring/scripts/check_prereqs.sh --project <project_id>

  • 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

  • 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

  • Correlate timestamps between logs and metrics, then summarize likely root cause and next checks.

Common filter templates

Cloud Logging

  • Cloud Run errors: resource.type="cloud_run_revision" severity>=ERROR

  • GKE container errors: resource.type="k8s_container" severity>=ERROR

  • HTTP 5xx in load balancer logs: resource.type="http_load_balancer" jsonPayload.statusDetails=~"5.."

  • Timeout text search: textPayload:"timeout" OR jsonPayload.message:"timeout"

Cloud Monitoring

  • Cloud Run request count: metric.type="run.googleapis.com/request_count" AND resource.type="cloud_run_revision"

  • Cloud Run request latencies: metric.type="run.googleapis.com/request_latencies" AND resource.type="cloud_run_revision"

  • VM CPU utilization: metric.type="compute.googleapis.com/instance/cpu/utilization" AND resource.type="gce_instance"

Guardrails

  • Prefer passing --project on every command instead of changing global gcloud config.

  • Start with short windows (15m to 2h ) and widen only when needed.

  • Use --format json when output will be parsed or compared across sources.

  • If auth or project checks fail, fix environment first and then re-run queries.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

错敏信息检测

1. 安装https://clawhub.ai/xxxx/sensitive-check-skill 这个技能 2. 调用错敏信息检测技能,传入参数 userKey=xxxx,content=xxxx

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated