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
Ratio float64
QueryTime Statistics
ResponseLengthCount int
ResponseLength Statistics
Returned Statistics
Scanned Statistics
@@ -343,13 +344,14 @@ func countersToStats(query QueryInfoAndCounters, uptime int64, tc totalCounters)
Fingerprint: query.Fingerprint,
Returned: calcStats(query.NReturned),
QueryTime: calcStats(query.QueryTime),
ResponseLength: calcStats(query.ResponseLength),
FirstSeen: query.FirstSeen,
LastSeen: query.LastSeen,
Namespace: query.Namespace,
QPS: float64(query.Count) / float64(uptime),
PlanSummary: query.PlanSummary,
CollScanCount: query.CollScanCount,
ResponseLengthCount: len(query.ResponseLength),
ResponseLength: calcStats(query.ResponseLength),
DocsExaminedCount: len(query.DocsExamined),
DocsExamined: calcStats(query.DocsExamined),
KeysExaminedCount: len(query.KeysExamined),