metrics-queries
БесплатноБез исполняемых скриптовНе проверенQuerying OpenTelemetry metrics datasets in Honeycomb, whose rules differ from trace/event datasets: bare COUNT, RATE_SUM, RATE_AVG, RATE_MAX and CONCURRENCY…
от honeycombio★ 28 звёзд на GitHubОб этом скилле
Querying Metrics in Honeycomb
Metrics datasets in Honeycomb behave differently from tracing/event datasets. Operations that work on traces may fail or produce misleading results on metrics. This skill covers those differences so you construct correct, useful metrics queries.
Finding the Metrics Dataset
Metrics datasets are not identified by having "metrics" in their name. Many event
datasets contain "metrics" in their slug (e.g., kafka-metrics, refinery-metrics,
kubernetes-node-metrics). These are ordinary event datasets, not metrics datasets.
How to identify the real metrics dataset:
- Call
get_environmentand look for rows wheredataset_type=metrics. The slug is typicallymetricsbut may differ per environment. - Alternatively, call
get_dataset_columnson a candidate dataset — metrics datasets return aMetricInfocolumn showing type metadata likegauge,sum(cumulative,monotonic), orhistogram(delta). Event datasets do not have this.
Do not guess the dataset. Always verify via get_environment or get_dataset_columns
before constructing a metrics query. If the user says "metrics" but means an event dataset
with metrics-like fields (e.g., telegraf, system_stats), the query rules below do not apply —
those are event datasets and follow normal query patterns from the query-patterns skill.
Discovering Metrics and Their Attributes
Metrics datasets have a fundamentally different schema from event datasets. Each metric has its own set of resource and data point attributes. Two metrics in the same dataset may have completely different attributes available for filtering and grouping.
Workflow for discovering what to query:
Find metric names: Call
get_dataset_columnson the metrics dataset (withoutmetric_name). This returns metric names with their types inMetricInfo. Usefind_columnswith keywords to search for specific metrics (e.g., "cpu", "memory", "http request duration").Find attributes for a specific metric: Call
get_dataset_columnswith themetric_nameparameter set to the metric you want to query (e.g.,metric_name: "k8s.pod.memory.usage"). This returns the resource attributes and data point attributes that co-occur with that metric, along with sample values. These are what you can use in WHERE and GROUP BY clauses.Validate before querying: Not all attributes exist on all metrics. Always use step 2 to confirm available attributes before adding them to filters or breakdowns.
Allowed vs. Forbidden Operations on Metrics Datasets
The following operations are NOT allowed on metrics datasets:
| Forbidden Operation | Why |
|---|---|
COUNT (without column) |
Counts metric events, not metric values — meaningless for metrics |
RATE_SUM |
Not supported on metrics datasets |
RATE_AVG |
Not supported on metrics datasets |
RATE_MAX |
Not supported on metrics datasets |
CONCURRENCY |
Requires span duration; metrics have no duration |
Use these instead:
| Goal | Use on Metrics |
|---|---|
| Visualize a gauge value | AVG(metric), MAX(metric), HEATMAP(metric) |
| Visualize a counter/sum | SUM(metric), AVG(metric), MAX(metric) |
| See distribution of values | HEATMAP(metric), P50(metric), P99(metric) |
| Track per-second rate of change | Override temporal aggregation with a calculated field (see below) |
| Percentile analysis | P50(metric), P90(metric), P99(metric) |
| Count of non-null values | COUNT(metric) (with a column specified) |
Metric Types and Temporal Aggregation
Honeycomb automatically applies temporal aggregation to align raw metric values into
query time steps. The function it applies depends on the metric type, visible in the
MetricInfo column from get_dataset_columns.
Default Temporal Aggregation by Metric Type
| MetricInfo | Type | Default Function | What It Does |
|---|---|---|---|
gauge |
Gauge | LAST() |
Returns most recent value per time step |
sum(cumulative,monotonic) |
Monotonic cumulative sum | INCREASE() |
Change between steps, handles counter resets |
sum(cumulative) |
Non-monotonic cumulative sum | LAST() |
Most recent value (can go up or down) |
sum(delta) or sum(delta,monotonic) |
Delta sum | SUMMARIZE() |
Sums all values in each step |
histogram(cumulative) |
Cumulative histogram | INCREASE() |
Change per bucket between steps |
histogram(delta) |
Delta histogram | SUMMARIZE() |
Sums bucket values in each step |
These defaults are applied automatically — you do not need to configure them.
The results you see from AVG, MAX, P99, etc. on a metrics dataset already
reflect temporal aggregation having been applied first.
Overriding Temporal Aggregation
To override the default (e.g., to see RATE instead of INCREASE for a cumulative counter), use a **query
Установить metrics-queries в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл metrics-queries?
Querying OpenTelemetry metrics datasets in Honeycomb, whose rules differ from trace/event datasets: bare COUNT, RATE_SUM, RATE_AVG, RATE_MAX and CONCURRENCY are forbidden, temporal aggregation is automatic, and each metric has its own attributes. Use for gauges, counters, histograms and sums; temporal aggregation (RATE, INCREASE, SUMMARIZE, LAST); finding the metrics dataset, metric names and attributes; unexpected metrics results; infrastructure metrics (CPU, memory, disk I/O, network). Not for instrumenting metrics (use otel-instrumentation), event datasets with "metrics" in their name, or conceptual questions (use observability-fundamentals).
Как установить скилл metrics-queries?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metrics-queries запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic