PMM-9288 Another change.

This commit is contained in:
Jiří Čtvrtka
2025-02-18 14:02:28 +01:00
parent cf11056f98
commit 33af9cc021

View File

@@ -292,6 +292,7 @@ type QueryStats struct {
Rank int Rank int
Ratio float64 Ratio float64
QueryTime Statistics QueryTime Statistics
ResponseLengthCount int
ResponseLength Statistics ResponseLength Statistics
Returned Statistics Returned Statistics
Scanned Statistics Scanned Statistics
@@ -343,13 +344,14 @@ func countersToStats(query QueryInfoAndCounters, uptime int64, tc totalCounters)
Fingerprint: query.Fingerprint, Fingerprint: query.Fingerprint,
Returned: calcStats(query.NReturned), Returned: calcStats(query.NReturned),
QueryTime: calcStats(query.QueryTime), QueryTime: calcStats(query.QueryTime),
ResponseLength: calcStats(query.ResponseLength),
FirstSeen: query.FirstSeen, FirstSeen: query.FirstSeen,
LastSeen: query.LastSeen, LastSeen: query.LastSeen,
Namespace: query.Namespace, Namespace: query.Namespace,
QPS: float64(query.Count) / float64(uptime), QPS: float64(query.Count) / float64(uptime),
PlanSummary: query.PlanSummary, PlanSummary: query.PlanSummary,
CollScanCount: query.CollScanCount, CollScanCount: query.CollScanCount,
ResponseLengthCount: len(query.ResponseLength),
ResponseLength: calcStats(query.ResponseLength),
DocsExaminedCount: len(query.DocsExamined), DocsExaminedCount: len(query.DocsExamined),
DocsExamined: calcStats(query.DocsExamined), DocsExamined: calcStats(query.DocsExamined),
KeysExaminedCount: len(query.KeysExamined), KeysExaminedCount: len(query.KeysExamined),