cloud-monitoring-metric-selection

cloud-monitoring-metric-selection is a skill for Claude Code from hamzabellouch/agent-skills. It costs 78 tokens per session (2,050 once invoked), scanned B, original, MIT.

A procedure for finding Google Cloud Monitoring metrics for a particular Google Cloud service or resource. It retrieves the service's metric descriptions and filters them for relevant terms.

In plain words
What is it for?
It helps discover metrics for services such as Compute Engine, Spanner, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, and Cloud Storage.
Why use it?
Cloud services expose many metrics, and guessing their names or data formats can lead to incorrect monitoring queries. This uses the current metric descriptions as the source of truth.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps discover metrics for services such as Compute Engine, Spanner, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, and Cloud Storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill cloud-monitoring-metric-selection
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-monitoring-metric-selection

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloud-monitoring-metric-selection

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/cloud-monitoring-metric-selection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,050 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.02050
Opus 5 $0.00039 $0.01025
Sonnet 5 $0.00016 $0.00410
Haiku 4.5 $0.00008 $0.00205

Measured 9d ago against content hash 101be2cf9903, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

cloud-monitoring-metric-selection scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- `~/.gemini/config/mcp_config.json`
Google Cloud and GKE/cloud-monitoring-metric-selection/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metric Selection (Service Query & Local Keyword Filtering)

Use this skill to identify the most relevant Google Cloud Monitoring metric descriptors. It queries all metric descriptors for a target service from the API and filters them locally inside the agent's context using keyword matching.

CRITICAL RULES

  • Always Query Live APIs: You MUST always retrieve the most up-to-date metric descriptors dynamically by calling the list_metric_descriptors MCP tool.

Workflow

Step 1: Verify & Auto-Configure MCP

  1. Check if any tool matching list_metric_descriptors (e.g. google-cloud-monitoring:list_metric_descriptors, mcp_google-cloud-monitoring_list_metric_descriptors, or a similar pattern) is available in your active toolset.

  2. Verify via Unique URL: To ensure you are calling the correct Google Cloud Monitoring tool, confirm that the underlying MCP server configuration points to: https://monitoring.googleapis.com/mcp.

  3. If the tool is missing:

    • Locate the MCP configuration file for the user's environment. Check common paths:

      • ~/.gemini/config/mcp_config.json
      • ~/.codeium/windsurf/mcp_config.json
      • cline_mcp_settings.json
      • claude_desktop_config.json
    • Directly update/merge the configuration file with the following server configuration. CRITICAL: Merge the JSON object to preserve any existing MCP servers in mcpServers. Do not overwrite the file.

      "google-cloud-monitoring": {
        "url": "https://monitoring.googleapis.com/mcp",
        "authProviderType": "google_credentials",
        "enabledTools": [
          "list_metric_descriptors"
        ]
      }
      
    • Print a clear message notifying the user that the google-cloud-monitoring MCP server has been configured, and request them to restart or start a new chat session to refresh tools. Stop calling further tools and end the turn.

Read the full file on GitHub · 200 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 200 lines · 78 tokens per session scan B 101be2cf9903

Subscribe to this mod's changes

cloud-monitoring-metric-selection is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 2,050 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.