Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

460 B
Raw Blame
name: system_cpu
description: >
  Host CPU jiffies from /proc/stat via pg_proctab (CREATE EXTENSION pg_proctab;
  no reboot). Cumulative; utilisation = (user+nice+system+iowait) / total delta.
interval: 60s
scope: cluster
kind: cumulative
requires: { extension: pg_proctab }
key: [id]
query: |
  SELECT 1 AS id, "user" AS user_jiffies, nice AS nice_jiffies, system AS system_jiffies,
         idle AS idle_jiffies, iowait AS iowait_jiffies
  FROM pg_cputime()