Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cx-telemetry-querying

БесплатноБез исполняемых скриптовНе проверен

Use this skill for any question involving telemetry data: "investigate an issue", "debug a problem", "find out why something is slow", "check error rates"…

coralogixот coralogix★ 243 звезды на GitHub

Об этом скилле

Telemetry Querying Skill

Use this skill as the entry point for any investigation, debugging, or data question that may be answered from telemetry data. It helps you decide where the relevant signal lives (metrics, logs, traces, RUM) and tells you which reference files to load before querying.

Loading References

Before querying, load the reference files for the chosen pillar:

Pillar Load these files
Logs references/dataprime-reference.md + references/logs-querying.md
Spans / Traces references/dataprime-reference.md + references/spans-querying.md
Metrics references/promql-guidelines.md + references/metrics-querying.md
RUM (frontend) references/dataprime-reference.md + references/rum-querying.md + references/rum-fields.md
DataPrime syntax only references/dataprime-reference.md

RUM hard rule: always query RUM with cx dataprime query --source rum.events first (fields directly under $d.*), even if you haven't loaded the reference files. Only if that returns no rows (after widening the range) fall back to legacy RUM logs: cx logs with $l.subsystemname == 'cx_rum' and fields under $d.cx_rum.*. Say which source the answer came from.


Safety

All query commands (cx logs, cx spans, cx metrics, cx dataprime, cx search-fields, cx datasets) are read-only and work in --read-only mode. They never modify data and can be run freely without --yes.


Quick Routing Guide

Use this table for obvious cases where one pillar is the clear first choice:

Question Type First Choice Fallback
UI behavior, page load, frontend errors RUM Traces (if backend-related)
Endpoint latency, throughput, error rates Metrics Traces (for per-request detail)
Service-to-service dependencies, request flow Traces Logs (for debug output)
Specific error messages, stack traces Logs Traces (for request context)
Infrastructure health (CPU, memory, disk) Metrics -
Business events (purchases, signups) Depends - see Discovery Workflow -

For ambiguous questions (e.g., "How much money did users spend last week?"), the signal could live in any pillar. Follow the Discovery Workflow below.


Discovery Workflow

When the answer could reside in multiple pillars, run discovery in parallel to find the best source.

Step 1: Search Metrics

Check if a relevant metric exists:

cx metrics search --name '*transaction*'
cx metrics search --name '*payment*'
cx metrics search --name '*revenue*'
cx metrics search --description "total purchase amount"

If a matching metric is found, load references/promql-guidelines.md + references/metrics-querying.md and continue.

Step 2: Search Log and Span Fields

Use semantic field search to find relevant DataPrime paths:

cx search-fields "transaction amount" --dataset logs
cx search-fields "payment total" --dataset spans
cx search-fields "purchase value" --dataset logs --limit 10

If you know a concrete value that should appear in the data but don't know which field holds it, use value search instead. It returns the matching field keys alongside sample values, which also lets you infer the field's type (string, numeric, enum, etc.):

cx search-fields "payment_failed" -s value --dataset logs
cx search-fields "grpc.status.UNAVAILABLE" -s value --dataset spans
cx search-fields "eu-west-1" -s value --dataset all

When you know part of a field's name, list the fields a dataset actually has with cx datasets fields. It works on any dataset (--dataset logs, --dataset spans, --dataset system/engine.queries) and returns each field as a DataPrime keypath with its types, ready to paste into a query. Then check real values with cx datasets field-values before writing a filter:

cx datasets fields --contains amount --start now-24h
cx datasets fields --prefix '$d.kubernetes' --dataset spans
cx datasets fields --prefix '$l' --prefix '$m'
cx datasets field-values '$d.payment.status' --label-filter applicationName=checkout

Repeating --exact, --prefix or --contains means any of the values; different flags must all hold. Some combinations are rejected with an error that names the problem; split them into separate searches. The time range is at most 7 days.

Use cx search-fields to find fields by meaning or by a value they hold; use cx datasets fields to find them by name.

Requirements: cx search-fields and cx datasets need a Coralogix API key or OAuth on the active profile. If credentials are missing, prompt the user to run cx profiles add <name>.

If matching fields are found:

  • For logs: load references/dataprime-reference.md + references/logs-querying.md
  • For spans: load references/dataprime-reference.md + references/spans-querying.md

Step 3: Search the Codebase

When discovery results are ambiguous or you need to validate what a metric/f

Полный SKILL.md на GitHub

Установить cx-telemetry-querying в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/dataprime-reference.mdreferences/logs-querying.mdreferences/metrics-querying.mdreferences/promql-guidelines.mdreferences/rum-fields.mdreferences/rum-querying.mdreferences/spans-querying.md

FAQ

Что делает скилл cx-telemetry-querying?

Use this skill for any question involving telemetry data: "investigate an issue", "debug a problem", "find out why something is slow", "check error rates", "analyze user behavior", "understand a production incident", "query telemetry data", "look at logs", "search logs", "find errors", "find stack traces", "de-minify a stack trace", "map a RUM error to source code", "filter by severity", "check traces", "examine spans", "investigate request latency", "debug service-to-service calls", "look up a trace ID", "analyze RUM data", "query rum.events", "check frontend performance", "frontend errors", "Core Web Vitals", "JavaScript exceptions", "query metrics", "check CPU usage", "run a PromQL query", "check error rate", "look up a metric", "check memory usage", "how do I write a DataPrime query", "DataPrime syntax", or wants to answer questions using observability data from logs, metrics, traces, RUM, or APM.

Как установить скилл cx-telemetry-querying?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cx-telemetry-querying запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cx-telemetry-querying с