From f6ca776c75f2330edca42486fb3a206b6967a06c Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 29 Dec 2020 11:38:39 +0200 Subject: [PATCH] README.md: mention about `-search.queryStats.lastQueriesCount` and `-search.queryStats.minQueryDuration` command-line flags in docs about query stats --- README.md | 2 ++ docs/Single-server-VictoriaMetrics.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index d57e82571..c2593ae18 100644 --- a/README.md +++ b/README.md @@ -544,8 +544,10 @@ Additionally VictoriaMetrics provides the following handlers: * the most frequently executed queries - `topByCount` * queries with the biggest average execution duration - `topByAvgDuration` * queries that took the most time for execution - `topBySumDuration` + The number of returned queries can be limited via `topN` query arg. Old queries can be filtered out with `maxLifetime` query arg. For example, request to `/api/v1/status/top_queries?topN=5&maxLifetime=30s` would return up to 5 queries per list, which were executed during the last 30 seconds. + VictoriaMetrics tracks the last `-search.queryStats.lastQueriesCount` queries with durations at least `-search.queryStats.minQueryDuration`. ## Graphite API usage diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index d57e82571..c2593ae18 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -544,8 +544,10 @@ Additionally VictoriaMetrics provides the following handlers: * the most frequently executed queries - `topByCount` * queries with the biggest average execution duration - `topByAvgDuration` * queries that took the most time for execution - `topBySumDuration` + The number of returned queries can be limited via `topN` query arg. Old queries can be filtered out with `maxLifetime` query arg. For example, request to `/api/v1/status/top_queries?topN=5&maxLifetime=30s` would return up to 5 queries per list, which were executed during the last 30 seconds. + VictoriaMetrics tracks the last `-search.queryStats.lastQueriesCount` queries with durations at least `-search.queryStats.minQueryDuration`. ## Graphite API usage