ed-metrics

ed-metrics is a skill for Claude Code, Codex from edgedelta/edgedelta-mcp-server. It costs 19 tokens per session (762 once invoked), scanned A, original, MIT.

A command-line tool for discovering metric names and querying their values with aggregations such as average, maximum, or total. Metrics are numeric measurements collected over time, such as request duration or CPU use.

In plain words
What is it for?
Use it to list available metrics, filter them by fields, group results by services or hosts, and display time-series or table data.
Why use it?
It reduces failed queries by requiring exact metric names and valid grouping fields before data is requested.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list available metrics, filter them by fields, group results by services or hosts, and display time-series or table data.

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

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/edgedelta/edgedelta-mcp-server/ed-metrics/github.svg)](https://agentmods.dev/skills/edgedelta/edgedelta-mcp-server/ed-metrics)
Your own site
<a href="https://agentmods.dev/skills/edgedelta/edgedelta-mcp-server/ed-metrics"><img src="https://agentmods.dev/badge/skills/edgedelta/edgedelta-mcp-server/ed-metrics/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 ed-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/edgedelta/edgedelta-mcp-server/ed-metrics"><img src="https://agentmods.dev/badge/skills/edgedelta/edgedelta-mcp-server/ed-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 762 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.
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.00019 $0.00762
Opus 5.5 $0.00008 $0.00305
Sonnet 5.5 $0.00004 $0.00152
Haiku 4.5 $0.00002 $0.00076

Measured 8d ago against content hash 0a259da5122b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ed-metrics 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 8d 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.

pkg/skills/data/ed-metrics/SKILL.md · 80 lines

How it starts

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

Edge Delta Metrics

Discover and aggregate metrics.

Prerequisites

The edx CLI must be installed and authenticated. See the ed-edx skill.

Rules That Prevent Failed Queries

  1. Metric names must be EXACT - no wildcards, no regex, case-sensitive. Always discover the name first.
  2. No full-text search in metric filters - field:"value" syntax only.
  3. Group-by keys must be real fields - check with edx facets keys --scope metric.

Discover Metric Names

edx metrics list                    # all metric names
edx metrics list --keyword cpu      # fuzzy filter

Query a Metric

# Average request duration per service, last hour
edx metrics query --name http.request.duration --agg avg --group-by service.name

# Max CPU on one host over 24h with 5-minute rollups
edx metrics query --name system.cpu.usage --agg max \
  --filter 'host.name:"web-1"' --rollup 300 --lookback 24h

# Table instead of timeseries (current values, good for top-N)
edx metrics query --name http.requests --agg sum \
  --group-by service.name --graph-type table

Aggregations: sum, avg, min, max, count, median. Filter: CQL field syntax, "*" for none.

Under the hood this builds the CQL agg:name{filter} by {keys}.rollup(secs) and returns records keyed by formula, e.g. {"A": {"records": [...]}}.

Groupable Dimensions (Important)

Metric dimensions are a fixed indexed allowlist (service.name, host.ip, ed.*, k8s.*, ...) - discover it with edx facets keys --scope metric. Grouping by anything else (an OTLP datapoint attribute like model/type, or a custom log_to_metric field dimension) silently returns one empty group rather than an error; edx metrics query warns when a --group-by key is not indexed. For attribute-level breakdowns, query the underlying logs (which carry every attribute) or emit a dedicated log_to_metric per breakdown.

Common Investigations

Question Command
Is CPU/memory elevated? edx metrics query --name system.cpu.usage --agg avg --group-by host.name
Which service has the most errors? edx metrics query --name <error-count-metric> --agg sum --group-by service.name --graph-type table
Did latency regress after deploy? edx metrics query --name http.request.duration --agg avg --from <deploy-time> --to <now>

Read the full file on GitHub · 80 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. 8d ago First seen · 80 lines · 19 tokens per session scan A 0a259da5122b

Subscribe to this mod's changes

ed-metrics is a skill published in the GitHub repository edgedelta/edgedelta-mcp-server (10 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 762 once invoked, about $0.0001 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-11-26.

Related

ed-metrics compared with skills from other repositories

ed-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ed-metricsedgedelta/edgedelta-mcp-serverSkill10yesterdayMITA19Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k5d agoMITA21Claude Code