一键导入
ed-metrics
Metrics - discover metric names and run aggregation queries (timeseries and tables).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Metrics - discover metric names and run aggregation queries (timeseries and tables).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
AI Teammate - manage connectors (PagerDuty, Slack, GitHub, ...), update teammates (agents) and view teammate activity.
Pipelines - fleet management, config changes, version history, deployments and live capture.
Dashboards - create, update, inspect and validate metric dashboards from the CLI.
Cross-signal incident investigation workflow - from alert to root cause using events, patterns, logs, metrics, traces and pipeline history.
Monitors - create, manage, snooze and resolve Edge Delta monitors and alerts.
Primary Edge Delta CLI - edx commands, authentication, output formats and conventions.
| name | ed-metrics |
| description | Metrics - discover metric names and run aggregation queries (timeseries and tables). |
| metadata | {"version":"1.0.0","author":"edgedelta","repository":"https://github.com/edgedelta/agent-skills","tags":"edgedelta,metrics,timeseries,aggregation","alwaysApply":"false"} |
Discover and aggregate metrics.
The edx CLI must be installed and authenticated. See the ed-edx skill.
field:"value" syntax only.edx facets keys --scope metric.edx metrics list # all metric names
edx metrics list --keyword cpu # fuzzy filter
# 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": [...]}}.
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.
| 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> |
edx metrics list --keyword <part>.edx facets options --scope metric --facet service.name.--lookback.--filter (use "*"), then add filters back one at a time.