# How to update max-query-length in pmm agent

**URL:** <https://forums.percona.com/t/how-to-update-max-query-length-in-pmm-agent/25185>\
**Category:** Percona Monitoring and Management (PMM)\
**Tags:** pmm, mysql, percona\
**Created:** [September 14, 2023, 11:35am UTC](https://forums.percona.com/t/how-to-update-max-query-length-in-pmm-agent/25185 "2023-09-14T11:35:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_V](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/karthik_v/32/12759_2.png) [@Karthik\_V](https://forums.percona.com/u/Karthik_V)\
**Post date:** [September 14, 2023, 11:35am UTC](https://forums.percona.com/t/how-to-update-max-query-length-in-pmm-agent/25185/1 "2023-09-14T11:35:46Z")

</div>

how to update max-query-length in pmm agent

---

<div class="post-metadata">

**Author:** ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)\
**Post date:** [September 14, 2023, 12:48pm UTC](https://forums.percona.com/t/how-to-update-max-query-length-in-pmm-agent/25185/2 "2023-09-14T12:48:03Z")

</div>

Hi @Karthik_V!  
Unfortunately, the only way to do this in released versions is to remove the Service and add it again with the same name but different flags.  
We know this is an inconvenience, and we are working on improvements in upcoming releases.
