cloud-metrics

Query Google Cloud Monitoring metrics via the Cloud Monitoring API.

1|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/Anthony-Bible/google-cloud-metrics-skill --skill cloud-metrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloud-metrics
Source: https://github.com/Anthony-Bible/google-cloud-metrics-skill/tree/main
Command: npx skills add https://github.com/Anthony-Bible/google-cloud-metrics-skill --skill cloud-metrics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-cloud-monitoring>=2.0.0, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of querying and understanding Google Cloud Monitoring metrics, making it easier to monitor and troubleshoot your cloud infrastructure.

Core Features & Use Cases

  • Query Metrics: Fetch time-series data with filtering, aggregation, and grouping.
  • Describe Metrics: Discover metric metadata, available labels, and filter examples.
  • List Metrics: Browse available metrics in your GCP project.
  • Use Case: Quickly check the CPU utilization of your Kubernetes pods in the 'production' namespace over the last hour, or find the top 5 memory-consuming containers.

Quick Start

Use the cloud-metrics skill to show me the CPU usage for my Kubernetes containers.

Frequently Asked Questions about cloud-metrics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Google Cloud Monitoring metrics for my Kubernetes containers?

Query Google Cloud Monitoring metrics by running a Python script that interacts with the Cloud Monitoring API to fetch time-series data for your Kubernetes containers. You can filter and aggregate the results for specific resource usage.

Can I list available GCP metrics and discover their metadata?

Yes, you can list available GCP metrics and describe their metadata. The script retrieves metric metadata from the Cloud Monitoring API, showing available labels and filter examples to help you construct queries.

Do I need the Google Cloud SDK to fetch time-series data from Cloud Monitoring?

Yes, fetching time-series data from Cloud Monitoring requires the Google Cloud SDK and proper authentication. You also need the google-cloud-monitoring Python dependency installed to execute the queries successfully.

What's the best way to check Kubernetes pod CPU utilization over a specific time period?

The best way to check Kubernetes pod CPU utilization is querying Cloud Monitoring time-series data with filtering and grouping options. This allows you to target the production namespace and aggregate usage over the last hour.

Does this approach support finding the top memory-consuming containers in a GCP project?

Yes, querying Cloud Monitoring supports finding top memory-consuming containers by fetching time-series data with filters and aggregation. This helps you quickly identify resource-heavy containers in your GCP project.