What problem does it solve?
Fleet-level Prometheus metrics cannot answer "which team or distinct_id is causing this" during ingestion incidents because per-metric label cardinality is unbounded. This Skill lets you query the tophog heavy-hitter table in ClickHouse to pinpoint hot or expensive actors (team_id, distinct_id, session_id, partition) behind ingestion lag, hot Kafka partitions, expensive person processing, and merge storms.
Core Features & Use Cases
- Internal Metabase access path: Authenticate via the engineer's own SSO session using hogli commands, discover the correct ClickHouse database id, and run queries without standing credentials.
- Schema and metric discovery: Full tophog table schema, read-side aggregation semantics per type (sum, max, avg), and live metric inventory discovery since metrics evolve with deploys.
- Cost-vs-volume triage lens: Rank actors by summed timer value and per-event cost to distinguish hot keys (volume problems) from expensive actors (merge-heavy or fat person properties).
- Use Case: During an incident where a single Kafka partition is lagging, run the canned top-actors-by-person-processing-cost query scoped to that partition to find the distinct_id driving merge storms, then hand off to the pganalyze MCP for Postgres-level analysis.
Quick Start
Ask the agent to find the top teams and distinct_ids by person-processing cost in the last hour using the tophog table via Metabase.