Octri

monitoring performance

列出最慢的事务及其运行次数、错误数、p50 和 p95,然后列出任何疑似 N+1 查询模式。请参阅性能。

bash
octri monitoring performance [--range <window>] [--limit <n>]

标志

--range <window>string默认值:24h

时间范围:1h、6h、24h、7d、30d 或 90d。

--limit <n>number默认值:20

要显示的事务数量。

示例

最慢的事务

bash
octri monitoring performance
Output
✔ Loading performance

Slowest transactions · last 24h
  TRANSACTION               COUNT  P50    P95    ERRORS
  ────────────────────────  ─────  ─────  ─────  ──────
  GET /customers/:id        80     31ms   141ms  0.00%
  GET /customers            79     47ms   63ms   0.00%
  GET /invoices             59     173ms  1.10s  0.00%
  POST /subscriptions       34     238ms  1.15s  8.8%
  POST /customers           33     84ms   613ms  0.00%
  POST /invoices/:id/send   15     384ms  2.54s  6.7%