Done
Details
Details
Assignee
Jiří Čtvrtka
Jiří ČtvrtkaReporter
Vinicius Grippa
Vinicius GrippaPriority
Needs QA
Yes
Needs Doc
No
Planned Version/s
Fix versions
Story Points
10
Sprint
None
Smart Checklist Progress
2/2 - Done
Start date
Jan 28, 2025
Due date
Mar 31, 2025
Created December 8, 2021 at 6:24 PM
Updated March 31, 2025 at 12:08 PM
Resolved March 13, 2025 at 10:16 AM
Here’s a sample document. I’ve highlighted the fields I think it’s worth having:
{
"op" : "query",
"ns" : "test.report",
"command" : {
"find" : "report",
"filter" : { "a" : { "$lte" : 500 } },
"lsid" : {
"id" : UUID("5ccd5b81-b023-41f3-8959-bf99ed696ce9")
},
"$db" : "test"
},
"cursorid" : 33629063128,
"keysExamined" : 101,
"docsExamined" : 101,
"fromMultiPlanner" : true,
"numYield" : 2,
"nreturned" : 101,
"queryHash" : "811451DD",
"planCacheKey" : "759981BA",
"queryFramework" : "classic",
"locks" : {
"Global" : {
"acquireCount" : {
"r" : NumberLong(3),
"w" : NumberLong(3)
}
},
"Database" : {
"acquireCount" : { "r" : NumberLong(3) },
"acquireWaitCount" : { "r" : NumberLong(1) },
"timeAcquiringMicros" : { "r" : NumberLong(69130694) }
},
"Collection" : {
"acquireCount" : { "r" : NumberLong(3) }
}
},
"storage" : {
"data" : {
"bytesRead" : NumberLong(14736),
"timeReadingMicros" : NumberLong(17)
}
},
"responseLength" : 1305014,
"protocol" : "op_msg",
"millis" : 69132,
"planningTimeMicros" : 129,
"planSummary" : "IXSCAN { a: 1, _id: -1 }",
"execStats" : {
"stage" : "FETCH",
"nReturned" : 101,
"executionTimeMillisEstimate" : 0,
"works" : 101,
"advanced" : 101,
"needTime" : 0,
"needYield" : 0,
"saveState" : 3,
"restoreState" : 2,
"isEOF" : 0,
"docsExamined" : 101,
"alreadyHasObj" : 0,
"inputStage" : {
...
}
},
"ts" : ISODate("2019-01-14T16:57:33.450Z"),
"client" : "127.0.0.1",
"appName" : "MongoDB Shell",
"allUsers" : [
{
"user" : "someuser",
"db" : "admin"
}
],
"user" : "someuser@admin"
}
it would be interesting to have those addressed in the QAN in order to facilitate offensive hosts, users, or Apps.
UI
same as PGSM related metrics
Refinement notes:
Percona toolkit backend code can be ported
Frontend - new metrics and new static filters / labels to be added
In scope metrics:
metric values (query time, docs examined, docs returned, locks acquire count and wait, storage bytes read, time reading micros )
metadata values (client, appName, user, db)
Out of scope for this ticket:
metadata values (comments)
data required for additional features(example, explain)