LabscoMCP early access ↗
PostHog avatar✓ Official

instrument-metrics

Account or credentials required★ 88 on GitHub

Adds code to an app that keeps count of the things that matter, such as jobs finished, failures and how long requests take, and sends those numbers to PostHog alongside any counting the app already does.

WHEN TO USE

SCOPE

USE FOR

  • Count how often an important step like checkout or a background job succeeds or fails.
  • Time calls to outside services and scheduled jobs so the slow ones show up on a chart.
  • Track values that rise and fall, like how many jobs are waiting in a queue.
  • Send numbers an app already reports to Prometheus or Datadog to PostHog as well.
  • Point an app that already reports through OpenTelemetry at PostHog with only a settings change.

NOT FOR

  • Detail for each user or each request; that belongs in PostHog logs or traces, not metrics.