# Query information is missing

**URL:** <https://forums.percona.com/t/query-information-is-missing/39693>\
**Category:** PMM 3.x\
**Created:** [November 6, 2025, 9:17am UTC](https://forums.percona.com/t/query-information-is-missing/39693 "2025-11-06T09:17:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANDiv1976](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/andiv1976/32/20170_2.png) [@ANDiv1976](https://forums.percona.com/u/ANDiv1976)\
**Post date:** [November 6, 2025, 9:17am UTC](https://forums.percona.com/t/query-information-is-missing/39693/1 "2025-11-06T09:17:20Z")

</div>

![изображение](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/8/1/8109fea57014d03b641c5216db7ab8ba21624d88.jpeg)

Several PostgreSQL servers are connected to the monitoring. The agent configuration is the same everywhere. On some servers, the monitoring shows that there is no QAN information.

How can I understand why QAN is not returning queries? All host metrics are present, but there are no queries.

Agent settings:  
`pg_stat_monitor.pgsm_bucket_time: 60`  
`pg_stat_monitor.pgsm_enable_overflow: true`  
`pg_stat_monitor.pgsm_enable_pgsm_query_id: false`  
`pg_stat_monitor.pgsm_enable_query_plan: true`  
`pg_stat_monitor.pgsm_histogram_max: 30000`  
`pg_stat_monitor.pgsm_histogram_min: 50`  
`pg_stat_monitor.pgsm_max: 512`  
`pg_stat_monitor.pgsm_max_buckets: 20`  
`pg_stat_monitor.pgsm_normalized_query: true`  
`pg_stat_monitor.pgsm_query_shared_buffer: 384`  
`pg_stat_monitor.pgsm_track_application_names: false`  
`pg_stat_monitor.pgsm_track_planning: false`

---

<div class="post-metadata">

**Author:** ![Agustin\_G](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/agustin_g/32/14111_2.png) [@Agustin\_G](https://forums.percona.com/u/Agustin_G)\
**Post date:** [November 7, 2025, 10:54pm UTC](https://forums.percona.com/t/query-information-is-missing/39693/2 "2025-11-07T22:54:50Z")

</div>

hi @ANDiv1976 ,

I would start by checking the PMM client-side status and logs from the affected nodes:

```auto
pmm-admin list
journalctl -u pmm-agent

```

or to get them in a zip file:

```auto
pmm-admin summary

```

Also check you are indeed generating query data, and that it’s current:

```auto
postgres#= SELECT count(*) from pg_stat_monitor;

```

```auto
postgres#= SELECT * from pg_stat_monitor LIMIT 5;

```

etc

---

<div class="post-metadata">

**Author:** ![ANDiv1976](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/andiv1976/32/20170_2.png) [@ANDiv1976](https://forums.percona.com/u/ANDiv1976)\
**Post date:** [November 10, 2025, 8:54am UTC](https://forums.percona.com/t/query-information-is-missing/39693/3 "2025-11-10T08:54:35Z")

</div>

hi, Augustin\_G!

The issue was with `pg_stat_monitor.pgsm_enable_pgsm_query_id: false`.  
After I changed it to `true`, queries appeared in QAN.
