gcloud-usage
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".
npx skills add fcakyon/claude-codex-settings --skill gcloud-usage --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# GCP Observability Best Practices ## Structured Logging ### JSON Log Format Use structured JSON logging for better queryability: ```json { "severity": "ERROR", "message": "Payment failed", "httpRequest": { "requestMethod": "POST", "requestUrl": "/api/payment" }, "labels": { "user_id": "123", "transaction_id": "abc" }, "timestamp": "2025-01-15T10:30:00Z" } ``` ### Severity Levels Use appropriate severity for filtering: - **DEBUG:** Detailed diagnostic info - **INFO:** Normal operations, milestones - **NOTICE:** Normal but significant events - **WARNING:** Potential issues, degraded performance - **ERROR:** Failures that don't stop the service - **CRITICAL:** Failures requiring immediate action - **ALERT:** Person must take action immediately - **EMERGENCY:** System is unusable ## Log Filtering Queries ### Common Filters ``` # 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" ``` ### Advanced Queries ``` #
- Structured Logging
- JSON Log Format
- Severity Levels
- Log Filtering Queries
- Common Filters
- Advanced Queries
- Metrics vs Logs vs Traces
- When to Use Each
- Alert Policy Design
- Alert Best Practices
- Common Alert Patterns
- Cost Optimization
- Reducing Log Costs
- Exclusion Filter Examples
What does the gcloud-usage skill do?
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".
How do I install it?
Run `npx skills add fcakyon/claude-codex-settings --skill gcloud-usage --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From fcakyon/claude-codex-settings, a repository with 967 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
