Obsfly

Feature · /query-summary

查询摘要

数据库执行过的每条查询规范化后,按真正影响最大的优先排序。

In one line

前 N 条规范化查询,附 p50 / p95 / p99 延迟、QPS、总耗时、扫描行数与计划变更历史。

What you get

  • Normalized query digests across Postgres / MySQL / MongoDB / Oracle / SQL Server
  • Latency percentiles (p50, p95, p99, max) updated every 15s
  • Total time, calls, rows touched, plan changes, error rate per signature
  • Group by app, host, database, schema, role, or any custom tag
  • Drill from signature → individual executions → wait-event flame graph
  • 30/90/365-day retention depending on plan

vs Datadog DBM

Datadog DBM Query Metrics is the closest equivalent. Obsfly ships the same data, plus plan-change history per signature (Datadog hides plan history behind a separate Live Queries view).

FAQ

How is a query 'normalized'?+

We strip literals, deterministically hash the parameterized form (md5 in Postgres, query_id in MySQL 8+, query digest in MongoDB), and treat that hash as the signature. Same logic Datadog uses.

Does this work without pg_stat_statements?+

For Postgres, no — pg_stat_statements is the source of truth. We auto-detect it on first connect and tell you what's missing.

What about MongoDB?+

We use $currentOp + the MongoDB profiler, normalized to a query shape hash. No driver changes required.

Related reading

· · ·

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

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

查询摘要 for Postgres, MySQL, MongoDB & more · Obsfly