Loading...
Loading...
Compare original and translation side by side
cx logscx spanscx metricscx dataprimecx search-fields--read-only--yescx logscx spanscx metricscx dataprimecx search-fields--read-only--yes| 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 | - |
| 问题类型 | 首选数据源 | 备选方案 |
|---|---|---|
| UI行为、页面加载、前端错误 | RUM | Traces(若与后端相关) |
| 端点延迟、吞吐量、错误率 | 指标 | Traces(用于单请求细节) |
| 服务间依赖、请求流 | Traces | 日志(用于调试输出) |
| 特定错误信息、堆栈追踪 | 日志 | Traces(用于请求上下文) |
| 基础设施健康(CPU、内存、磁盘) | 指标 | - |
| 业务事件(购买、注册) | 视情况而定——参见发现流程 | - |
cx metrics search --name '*transaction*'
cx metrics search --name '*payment*'
cx metrics search --name '*revenue*'
cx metrics search --description "total purchase amount"cx-metrics-querycx metrics search --name '*transaction*'
cx metrics search --name '*payment*'
cx metrics search --name '*revenue*'
cx metrics search --description "total purchase amount"cx-metrics-querycx search-fields "transaction amount" --dataset logs
cx search-fields "payment total" --dataset spans
cx search-fields "purchase value" --dataset logs --limit 10cx search-fieldscx profiles addcx-query-logscx-query-spanscx search-fields "transaction amount" --dataset logs
cx search-fields "payment total" --dataset spans
cx search-fields "purchase value" --dataset logs --limit 10cx search-fieldscx profiles addcx-query-logscx-query-spansprometheus.NewCountermetrics.recordlogger.info("transaction", ...)span.setAttribute("purchase.amount", ...)prometheus.NewCountermetrics.recordlogger.info("transaction", ...)span.setAttribute("purchase.amount", ...)| Pillar | Skill to Use |
|---|---|
| Metrics | |
| Logs | |
| Traces/Spans | |
| RUM | |
| APM | APM-specific guidance |
| 支柱 | 使用的Skill |
|---|---|
| 指标 | |
| 日志 | |
| 追踪/Span | |
| RUM | |
| APM | APM专属指南 |
| Command | Purpose | When to Use |
|---|---|---|
| Output the full command tree as JSON | Discover all available commands and their flags |
| Find metrics by name | First step for metrics discovery |
| Semantic metric search | When you know what you want but not the name |
| Find log fields by description | Discovery for log-based questions |
| Find span fields by description | Discovery for trace-based questions |
| Search spans by service | When investigating a specific service |
| List DataPrime commands/functions | When building log queries |
| 命令 | 用途 | 使用场景 |
|---|---|---|
| 以JSON格式输出完整命令树 | 发现所有可用命令及其参数 |
| 按名称查找指标 | 指标发现的第一步 |
| 语义指标搜索 | 知道需求但不知道指标名称时 |
| 按描述查找日志字段 | 基于日志的问题发现 |
| 按描述查找Span字段 | 基于追踪的问题发现 |
| 按服务搜索Span | 调查特定服务时 |
| 列出DataPrime命令/函数 | 构建日志查询时 |
cx metrics search --name '*revenue*'cx metrics search --name '*transaction*'cx search-fields "transaction amount" --dataset logscx search-fields "payment total" --dataset spanspayment_total_usdcx-metrics-querycx-query-logspurchase.amountcx-query-spanscx metrics search --name '*revenue*'cx metrics search --name '*transaction*'cx search-fields "transaction amount" --dataset logscx search-fields "payment total" --dataset spanspayment_total_usdcx-metrics-querycx-query-logspurchase.amountcx-query-spanscx metrics search --name '*checkout*latency*'cx metrics search --name '*http*duration*'cx-metrics-queryhistogram_quantilecx spans "filter $l.serviceName == 'checkout-service'" --limit 10cx metrics search --name '*checkout*latency*'cx metrics search --name '*http*duration*'cx-metrics-queryhistogram_quantilecx spans "filter $l.serviceName == 'checkout-service'" --limit 10cx-rumcx-query-spanscx-rumcx-query-spanscx metrics search --name '*error*'cx-metrics-querycx search-fields "error message" --dataset logscx-query-logscx spans "filter $l.serviceName == 'payment-service'" --limit 10cx-query-spanscx metrics search --name '*error*'cx-metrics-querycx search-fields "error message" --dataset logscx-query-logscx spans "filter $l.serviceName == 'payment-service'" --limit 10cx-query-spans| User Intent | Route To |
|---|---|
| Reducing costs, checking usage, TCO policies | |
| Incident triage, SLO breaching, who got paged | |
| Setting up monitoring, webhooks, notifications | |
| Configuring parsing rules, enrichments, E2M | |
| Access audit, API keys, user management | |
| Creating or managing dashboards | |
| 用户意图 | 路由至 |
|---|---|
| 成本优化、使用量检查、TCO策略 | |
| 事件分诊、SLO违规、通知对象确认 | |
| 监控设置、Webhook、通知配置 | |
| 解析规则、数据增强、E2M配置 | |
| 访问审计、API密钥、用户管理 | |
| 仪表板创建与管理 | |
cx-dataprimecx-metrics-querycx-query-logscx-query-spanscx-rumcx-alertscx-create-dashboardcx-dataprimecx-metrics-querycx-query-logscx-query-spanscx-rumcx-alertscx-create-dashboardcx-cost-optimizationcx-incident-managementcx-data-pipelinecx-platform-admincx-observability-setupcx-cost-optimizationcx-incident-managementcx-data-pipelinecx-platform-admincx-observability-setup