Increase default max query length

Description

For MongoDB queries, the default limit of 2048 chars is too small. There are long queries often, and also aggregation pipelines which are long.

It is very often we see the message “Example query is not successfully parsed due to the max query length limit that you set or set by default” when trying to see examples of the query in the QAN page. I suggest increasing the default value to 4096 to reduce the chances of hitting the issue.

How to test

  1. Add mongo to monitoring

  2. Trigger long queries (for example with aggregation)

  3. Check QAN that queries are not truncated (if they are less than 4096 chars).

  4. Check any another technology. Limit there should be still 2048 chars.

How to document

If there is mention about 2048 chars limit in QAN, lets change it to 4096 for Mongo. For others is persist as 2048.

Smart Checklist

hide

Activity

Show:

Catalina Adam November 8, 2024 at 10:37 AM
Edited

Updated docs with this commit in PMM3 Beta docs.

Done

Details

Assignee

Reporter

Priority

Components

Labels

Needs QA

Yes

Needs Doc

Yes

Planned Version/s

Fix versions

Story Points

Smart Checklist Progress

Smart Checklist

Created September 18, 2024 at 11:23 AM
Updated December 2, 2024 at 3:05 PM
Resolved November 20, 2024 at 10:42 AM