Details
-
New Feature
-
Status: Done
-
Medium
-
Resolution: Done
-
None
-
5.5
-
No
-
No
-
Yes
-
C/S Core
-
Description
*FB: https://github.com/Percona-Lab/pmm-submodules/pull/2765*
User story:
- As a PMM user, I need to be able to change the default length of Query Example and Query Examples in QAN so that I can see some longer queries if I have them
UI/UX:
1) #pmm-admin add ..... --max-query-length = 50000
2) an additional field on Remote instances pages
query-length - in bytes ..?
Acceptance criteria
- User able to specify query-length for all monitored services (Mysql, mongodb, Postgresql) where we have QAN while adding in CLI
- USer can control this parameter when adding Service over UI
- Documentation
- Documentation on the parameter
- short explanation of how this can affect the monitoring and monitored system
Out of scope:
TBD
Suggested implementation:
Add a new parameter MaxQueryExampleLength for
- MySQL: AddMySQLRequest
- MySQL/QAN: QANMySQLPerfSchemaAgent and QANMySQLSlowlogAgent
Add the new parameter to pmm-managed agent mode MySQLOptions and in the places they are used
Update API test
Update pmm-agent's QAN for SlowLog and PerfSchema to use the new parametrized value for query length instead the hardcoded value
Add a new parameter in pmm-admin for add mysql
How to test:
TBD
Details:
Please note: we can't store Full Example/Fingerprint by default as this might affect the performance of QAN/PMM for longer fingerprints. We already fixed the bug when PMM was very slow with very long queries. So people need to use this flag with caution