monitoring-capture-service
БесплатноБез исполняемых скриптовНе проверенMonitor and diagnose the capture service (rust/capture) in prod-us and prod-eu with verified metrics, Loki logs, dashboards and alerts. Use when investigating…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Monitoring the capture service
The capture service (rust/capture/) is PostHog's Rust HTTP intake.
It authenticates, validates and limits events, then produces them to Kafka or WarpStream.
One binary runs as four deployments, picked by CAPTURE_MODE.
Every name, label and value below was read from production (prod-us and prod-eu) and the code on master.
Counters only get a series after their first increment, so a missing series can mean "never happened" rather than "broken".
Confirm a name with the discovery tools before you conclude anything from an empty result.
Tools and datasources
Two tool sets reach the same data. Use either, and say which one you used.
| Tool set | Metrics | Logs | Notes |
|---|---|---|---|
| PostHog MCP (US project 2) | metric-names-list, metric-attributes-list, metric-attribute-values-list, then query-metrics with query.promql |
logs-attribute-values-list, logs-attributes-list, then query-logs |
Log service.name equals the namespace, for example capture-analytics. metric-names-list can report a counter as gauge; use rate or increase on counters anyway. |
Grafana MCP (grafana-us, grafana-eu) |
Prometheus datasource UID victoriametrics |
Loki datasource UID P44D702D3E93867EC |
Same UIDs in both regions. Profiles: Pyroscope datasource pyroscope (US). Dashboards: search_dashboards, get_dashboard_summary, get_dashboard_panel_queries. |
Ask which region to check when the user does not say. Query each region with its own tools; an environment label (prod-us, prod-eu) does not switch instances.
Health checks: keep zero-valued series (query.dropEmptySeries: false in PostHog) so a failing label still shows.
Deployments
| Namespace | Deployments | capture_mode label |
Serves (paths seen in http_requests_total) |
Produces to |
|---|---|---|---|---|
capture-analytics |
capture-analytics-1a, -1b, -1c |
events |
Legacy /e, /batch, /capture, /i/v0/e, /track, /engage; v1 /i/v1/analytics/events |
MSK ingestion cluster |
capture-ai |
capture-ai-1a, -1b, -1c |
ai |
Legacy /i/v0/ai, /i/v0/ai/batch, /i/v0/ai/otel; v1 /i/v1/ai/events |
WarpStream (ingestion virtual cluster) |
capture-replay |
capture-replay-1a, -1b, -1c |
recordings |
/s |
WarpStream (replay virtual cluster) |
capture-import |
capture-import |
import |
Same paths as analytics; only historical backfills are kept | MSK ingestion cluster |
- Route selection is in
rust/capture/src/router.rs(match capture_mode,serves_v1_analytics,serves_v1_ai_events). - Paths may appear with or without a trailing slash; match both, for example
path=~"/batch/?". capture-mirroredexists as a deployment with 0 replicas in both regions and serves nothing.capture-logsandcapture-apm-metricsshare thecapture-prefix but are other binaries (rust/capture-logs,rust/capture-apm-metrics, metric prefixescapture_logs_*andcapture_metrics_*). This skill does not cover them; exclude them withnamespace=~"capture-(analytics|ai|replay|import)".
Labels on capture metrics
- Every capture app metric carries
namespace,role(the namespace name),capture_mode,pod,topology_kubernetes_io_zone,environmentandcluster_name. - App metrics have no
containerlabel.containerexists only on cAdvisor (container_*) metrics and on Loki streams. - Gauges are per pod. Aggregate them with
max,minoravg, never
Установить monitoring-capture-service в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл monitoring-capture-service?
Monitor and diagnose the capture service (rust/capture) in prod-us and prod-eu with verified metrics, Loki logs, dashboards and alerts. Use when investigating capture latency, errors, event loss, legacy (v0) versus v1 endpoint behavior, billing quota drops, the global rate limiter, event restrictions, Redis health, Kafka or WarpStream produce problems, Envoy or edge rate limiting, or any capture health question.
Как установить скилл monitoring-capture-service?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл monitoring-capture-service запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub