mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 10:34:01 +00:00
PMM-9288 Another change.
This commit is contained in:
@@ -287,14 +287,15 @@ type QueryStats struct {
|
|||||||
FirstSeen time.Time
|
FirstSeen time.Time
|
||||||
LastSeen time.Time
|
LastSeen time.Time
|
||||||
|
|
||||||
Count int
|
Count int
|
||||||
QPS float64
|
QPS float64
|
||||||
Rank int
|
Rank int
|
||||||
Ratio float64
|
Ratio float64
|
||||||
QueryTime Statistics
|
QueryTime Statistics
|
||||||
ResponseLength Statistics
|
ResponseLengthCount int
|
||||||
Returned Statistics
|
ResponseLength Statistics
|
||||||
Scanned Statistics
|
Returned Statistics
|
||||||
|
Scanned Statistics
|
||||||
|
|
||||||
PlanSummary string
|
PlanSummary string
|
||||||
CollScanCount int
|
CollScanCount int
|
||||||
@@ -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),
|
||||||
|
Reference in New Issue
Block a user