mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-02-27 07:50:47 +00:00
Fixup new pg_stats_statements query (#876)
Fix all renames of `total_time` to `total_exec_time`. Fixes: https://github.com/prometheus-community/postgres_exporter/issues/502 Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
f9277b04b7
commit
716ac23f20
@ -105,9 +105,9 @@ var (
|
|||||||
JOIN pg_database
|
JOIN pg_database
|
||||||
ON pg_database.oid = pg_stat_statements.dbid
|
ON pg_database.oid = pg_stat_statements.dbid
|
||||||
WHERE
|
WHERE
|
||||||
total_time > (
|
total_exec_time > (
|
||||||
SELECT percentile_cont(0.1)
|
SELECT percentile_cont(0.1)
|
||||||
WITHIN GROUP (ORDER BY total_time)
|
WITHIN GROUP (ORDER BY total_exec_time)
|
||||||
FROM pg_stat_statements
|
FROM pg_stat_statements
|
||||||
)
|
)
|
||||||
ORDER BY seconds_total DESC
|
ORDER BY seconds_total DESC
|
||||||
|
Loading…
Reference in New Issue
Block a user