cloud-monitoring-promql-query
Skill by google
Generates valid PromQL queries from Cloud Monitoring metric and resource descriptors. Built for users who need PromQL strings or aggregations for Google Cloud metrics, and checks each query with a bundled linter.
Install cloud-monitoring-promql-query
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/cloud-monitoring-promql-query ~/.claude/skills/cloud-monitoring-promql-queryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install cloud-monitoring-promql-query in Claude Code
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/cloud-monitoring-promql-query ~/.gemini/antigravity-cli/skills/cloud-monitoring-promql-queryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cloud-monitoring-promql-query in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
cloud-monitoring-promql-query is a Google skill that generates valid PromQL queries for any Cloud Monitoring metric type. It maps metric and resource descriptors to PromQL structures, including metric name normalization, aggregation choice and resource filters. Descriptor details come from the user's prompt, the list_metric_descriptors MCP tool, or a direct Cloud Monitoring API call.
The skill requires a Google Cloud project ID and stops to ask for one if it cannot find it. Generated queries are validated with a bundled linter script and returned in a promql code block. It is for users who write or format PromQL against Cloud Monitoring. It does not handle raw metric discovery or metric selection.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate PromQL queriesCreates PromQL queries from Cloud Monitoring metric and resource descriptors.
- Normalize metric namesConverts Cloud Monitoring metric types to PromQL metric names, adding _bucket for distributions.
- Choose aggregationsSelects structures such as rate, histogram_quantile, sum or avg using a reference table.
- Resolve resource filtersAdds monitored_resource filters and maps resource names to label keys.
- Validate queriesRuns the scripts/validate_promql.py linter on generated queries before presenting them.
What you need
- Google Cloud project ID
- gcloud CLI for project lookup and API calls
- Python 3 with the promql-parser package
- Access to the Cloud Monitoring API
Try asking
- Write a PromQL query for CPU utilization of my GCE instances in project my-project
- Generate a PromQL rate query for Cloud Functions execution times
- Format a PromQL aggregation for Cloud Run request counts grouped by service
Good to know
- Stops and asks for a project ID if none is given or found through gcloud.
- Does not perform raw metric discovery or metric selection.
- Does not sum or average ratio or percentage utilization metrics across instances.
- Generated queries must be a single line with no comments.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/cloud-monitoring-promql-query/SKILL.md, skills/cloud/cloud-monitoring-promql-query/scripts/validate_promql.py, skills/cloud/cloud-monitoring-promql-query/scripts/validate_promql_test.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB -
references/attribution.md2 KB -
references/basic_aggregations.md13 KB -
references/promql_error_recovery.md5 KB -
scripts/validate_promql.py8 KB
Show all 6 files
-
scripts/validate_promql_test.py10 KB
Alternatives to cloud-monitoring-promql-query
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
cloud-monitoring-promql-query: common questions
What does the cloud-monitoring-promql-query skill do?
It generates valid PromQL queries from Cloud Monitoring metric descriptors and resource parameters. It then validates the query with a bundled linter script.
Does it need a Google Cloud project ID?
Yes. The skill is blocking on a project ID and will not generate a query with placeholders if the ID cannot be found.
Which tasks should I not use this skill for?
The skill description says not to use it for raw metric discovery or metric selection. For vague queries, the source points to the cloud-monitoring-metric-selection skill.
How do I install cloud-monitoring-promql-query?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cloud-monitoring-promql-query free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cloud-monitoring-promql-query safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cloud-monitoring-promql-query?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
