# Mysql exporter question

**URL:** <https://forums.percona.com/t/mysql-exporter-question/25174>\
**Category:** PMM 2.x\
**Created:** [September 14, 2023, 8:44am UTC](https://forums.percona.com/t/mysql-exporter-question/25174 "2023-09-14T08:44:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shshwe2](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shshwe2/32/10086_2.png) [@shshwe2](https://forums.percona.com/u/shshwe2)\
**Post date:** [September 14, 2023, 8:44am UTC](https://forums.percona.com/t/mysql-exporter-question/25174/1 "2023-09-14T08:44:10Z")

</div>

Hello.

I implemented metrics using the mysql\_global\_status\_slow\_queries exporter, but currently only queries delayed by more than 10 seconds are displayed.

To DB server  
long\_query\_time=1 is set in my.cnf.

Do I need to do something more on the pmm server?

pmm is using version 2.6 and grafana is using version 9.2.

---

<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:54pm UTC](https://forums.percona.com/t/mysql-exporter-question/25174/2 "2023-09-14T12:54:13Z")

</div>

@shshwe2 are you using PMM or just exporter separately?  
PMM version 2.6 is quite outdated, so I suggest updating to the latest version.

---

<div class="post-metadata">

**Author:** ![shshwe2](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shshwe2/32/10086_2.png) [@shshwe2](https://forums.percona.com/u/shshwe2)\
**Post date:** [September 15, 2023, 1:57am UTC](https://forums.percona.com/t/mysql-exporter-question/25174/3 "2023-09-15T01:57:31Z")

</div>

Sorry, pmm version is 2.36

I am using a compiled library called mysql\_exporter.

Instead of slow queries being delayed by more than 10 seconds, we want to extract the number of queries delayed by more than 1 second.

Currently mysql config is set to long\_query\_time=1.
