: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
name: system_disk
description: Per-device I/O counters from /proc/diskstats via pg_proctab (cumulative).
interval: 60s
scope: cluster
kind: cumulative
requires: { extension: pg_proctab }
key: [devname]
query: |
SELECT devname, reads_completed, reads_merged, sectors_read, readtime AS read_time_ms,
writes_completed, writes_merged, sectors_written, writetime AS write_time_ms,
iotime AS io_time_ms, totaliotime AS weighted_io_time_ms
FROM pg_diskusage()
WHERE devname !~ '^(loop|ram)'