Obsfly

Feature · /query-activity

查询活动

你的数据库此刻在做什么 — 又在等谁。

In one line

1Hz 实时流式传送活跃会话,附等待事件、锁链与慢查询告警。

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

· · ·

像监控服务一样监控你的数据库。

预约 30 分钟演示。我们一起规划你的数据库规模,并报出第一个 30 天合作的报价。

查询活动 for Postgres, MySQL, MongoDB & more · Obsfly