Obsfly

Feature · /query-activity

Query Activity

See exactly what every database is doing right now, with sub-second sampling and full wait-event context.

In one line

Live query stream with wait events, lock chains, slow-query alerts, and sample-once-per-second activity snapshots.

What you get

  • 1 Hz sampling of pg_stat_activity / SHOW PROCESSLIST / db.currentOp() / v$session
  • Wait-event flame graphs by signature, by host, by database
  • Long-running query detection with configurable thresholds
  • Lock chain visualization — see which session is blocking which
  • Per-session attribution to app, user, query digest
  • Alert on activity patterns: 'more than N sessions in LWLock for 60s'

vs Datadog DBM

Datadog calls this 'Live Queries.' Obsfly samples at 1 Hz by default vs Datadog's 10s default — 10× the resolution at the same agent CPU cost.

FAQ

How much load does 1 Hz sampling add?+

Under 1% CPU on a Postgres host with 200 concurrent sessions. The pg_stat_activity view is in-memory.

Can I see historic activity, not just live?+

Yes — every sample is persisted in ClickHouse for 30 days (Team) or 90 days (Business). You can scrub backward to any moment.

Related reading

· · ·

Watch your databases the way you watch your services.

Book a 30-minute demo. We'll spec your fleet together and quote your first 30-day deal.

Query Activity for Postgres, MySQL, MongoDB & more · Obsfly