CtrlK
BlogDocsLog inGet started
Tessl Logo

kopai/root-cause-analysis

Analyze telemetry data for root cause analysis using Kopai CLI. Use when debugging errors, investigating latency issues, tracing request flows across services, or correlating logs with traces. Also use when users report production issues like "why is my API slow", "getting 500 errors", "service is down", "requests are timing out", or any symptom that needs telemetry-based investigation — even if they don't mention traces or observability explicitly.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

metric-filters.mdreferences/

Metric Filters Reference

Available Filters

FilterFlagExample
Type (required)--type--type Gauge
Name--name--name http_requests_total
Service--service--service payment-api
Attributes--attr--attr "endpoint=/api"
Aggregate--aggregate--aggregate sum
Group by (attr)--group-by--group-by signal (repeatable)

Metric Types

TypeDescriptionUse Case
GaugePoint-in-time valueCurrent memory, CPU, connections
SumCumulative counterRequest counts, error counts
HistogramDistribution of valuesLatency percentiles

Common Metrics

MetricTypeDescription
http_requests_totalSumTotal HTTP requests
http_server_errors_totalSumHTTP 5xx errors
http_server_durationHistogramRequest latency
process_cpu_secondsSumCPU usage
process_resident_memory_bytesGaugeMemory usage

Output Options

FlagDescription
--jsonJSON output
--tableTable output
--fieldsSelect specific fields
--limitMax results

Commands

# Discover all metrics
kopai metrics discover --json

# Search specific metric
kopai metrics search --type TYPE [--name NAME] [--service NAME] --json

references

log-filters.md

metric-filters.md

trace-filters.md

SKILL.md

tile.json