metrics-observability

metrics-observability is a skill for Claude Code from controlplane-com/ai-plugin. It costs 49 tokens per session (3,672 once invoked), scanned A, original, MIT.

A guide to monitoring Control Plane workloads, a platform for running applications, using metrics, PromQL queries, Grafana dashboards, alerts, and traces.

In plain words
What is it for?
Use it to inspect CPU, memory, traffic, latency, custom metrics, traces, Prometheus data, alerts, and metric retention.
Why use it?
It helps you find resource use, request problems, and application failures without guessing metric names or querying the wrong data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cpln plugin — 32 skills, 2 commands, 2 agents, 1 hook, 1 MCP server shipped together

Good fit Use it to inspect CPU, memory, traffic, latency, custom metrics, traces, Prometheus data, alerts, and metric retention.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/controlplane-com/ai-plugin/metrics-observability
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 controlplane-com/ai-plugin --skill metrics-observability
Clone the repo
git clone --depth 1 https://github.com/controlplane-com/ai-plugin

Made for: Claude Code.

Or install cpln, the plugin that ships this one along with the rest of its 32 skills, 2 commands, 2 agents, 1 hook, 1 MCP server.

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 metrics-observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/metrics-observability/github.svg)](https://agentmods.dev/skills/controlplane-com/ai-plugin/metrics-observability)
Your own site
<a href="https://agentmods.dev/skills/controlplane-com/ai-plugin/metrics-observability"><img src="https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/metrics-observability/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 metrics-observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/controlplane-com/ai-plugin/metrics-observability"><img src="https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/metrics-observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Privilege Escalation · line 161
    Skill requests more permissions than appear necessary for its stated functionality. Review if elevated access is justified.
    Fix: Request only the minimum permissions required. Document why each permission is needed. Remove broad permissions like '*' or 'all'.
How audits are shown
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.00049 $0.03672
Opus 5.5 $0.00020 $0.01469
Sonnet 5.5 $0.00010 $0.00734
Haiku 4.5 $0.00005 $0.00367

Measured 1mo ago against content hash fd696b51366f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

metrics-observability scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cpln/skills/metrics-observability/SKILL.md · 164 lines

How it starts

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

Metrics, Tracing & Observability

Control Plane stores every workload's metrics as Prometheus-compatible time series in a managed backend (Mimir), queryable in PromQL through the per-org managed Grafana or the MCP tools. The org is the tenant: it comes from the endpoint path, so there is no org= label and no cross-org queries. Two traps dominate. Series names are short: memory is mem_used / mem_reserved / mem_billable, not memory_*; a memory_used query returns nothing, so ground names first with query_metrics without a query. Rate-shaped metrics are pre-rated: egress, requests_per_second, and the latency buckets are already rated by the platform's recording rules, so you query them bare; wrapping them in rate() again returns garbage. Finally, a workload's in-pod CPLN_TOKEN cannot authenticate to the metrics endpoint; querying from outside the mesh needs a user or service-account token.

Two ways to query

  • MCP (primary for agents): mcp__cpln__query_metrics runs a PromQL query: a range query over the last 1h at 60s step by default; pass resolution: "instant" for a single point, or since / from / to / step to adjust. Without a query, it lists the documented metric catalog, the documented and custom metric names live in the org right now, and a count of kube_* and node_* series (filter lists those); pass metric: to get one metric's live label values before filtering. List them whenever a query returns no series. Measure first, then change scaling settings.
  • Grafana: the managed per-org instance — open Metrics in the Console sidebar (or the Metrics link on any workload), use Explore for ad-hoc PromQL, and dashboards/alerting for the rest. The grafanaAdmin org permission grants the Grafana Admin role; everyone else is Viewer.

PromQL: query the right shape

The platform pre-computes rates, so the shape decides the query form:

  • Gauges — query bare: cpu_used, mem_used, replica_count, workload_ready_replicas.
  • Pre-rated gauges — query bare, never rate(): egress and cross_zone_traffic (bytes per minute), requests_per_second, requests_initiated_per_second, cron_execution_rate.
  • Histogram — histogram_quantile, no extra rate(): request_duration_ms_bucket keeps its le label and is already rated.
  • Cumulative counters — wrap in increase() / rate() for velocity: container_restarts, cron_executions, workload_progress_failure, workload_rescheduled_replicas, domain_warnings.

Read the full file on GitHub · 164 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. 1mo ago Changed · +1 lines fd696b51366f
  2. 2mo ago Changed · -31 lines 0ec4f89853ad
  3. 3mo ago First seen · 194 lines · 49 tokens per session scan A 8c73105f3463

Subscribe to this mod's changes

metrics-observability is a skill published in the GitHub repository controlplane-com/ai-plugin (12 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 3,672 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

metrics-observability compared with skills from other repositories

metrics-observability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metrics-observabilitycontrolplane-com/ai-pluginSkill12yesterdayMITA49Claude Code
ak-cloud-deployyaalalabs/agent-kernelSkill195todayApache-2.0A204Claude Code, Codex
huawei-cloud-cce-env-assessmenthuaweicloud/huaweicloud-skillsSkill59todayMITA69Claude Code, Codex
cloud-native-aws-serverlessj4flmao/agent-skillsSkill4715d agoMITA84Claude Code, Codex
cloud-native-kubernetes-masteryj4flmao/agent-skillsSkill4715d agoMITA85Claude Code, Codex
cloud-native-azure-functionsj4flmao/agent-skillsSkill4715d agoMITA82Claude Code, Codex
cloud-native-security-defensivej4flmao/agent-skillsSkill4715d agoMITA91Claude Code, Codex