From c175c49b3dda1427de83d7a66cb37f7467dba4d5 Mon Sep 17 00:00:00 2001
From: Alex Demidoff
Date: Thu, 26 Feb 2026 15:11:26 +0300
Subject: [PATCH 1/3] PMM-14818 Move the query to low resolution bucket
---
queries-hr.yml | 14 --------------
queries-lr.yaml | 12 ++++++++++++
2 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/queries-hr.yml b/queries-hr.yml
index bb979da5e..eeb0bf033 100644
--- a/queries-hr.yml
+++ b/queries-hr.yml
@@ -72,20 +72,6 @@ pg_custom_stat_wal_receiver:
usage: "GAUGE"
description: "Timestamp of the last message received in seconds since the epoch."
-
-pg_custom_database_size_custom:
- master: true
- query: "SELECT pg_database.datname, pg_database_size(pg_database.datname) as bytes FROM pg_database"
- cache_seconds: 30
- metrics:
- - datname:
- usage: "LABEL"
- description: "Name of the database"
- - bytes:
- usage: "GAUGE"
- description: "Disk space used by the database"
-
-
pg_custom_stat_replication:
master: true
query: |
diff --git a/queries-lr.yaml b/queries-lr.yaml
index 522639ee5..6b2c25ccb 100644
--- a/queries-lr.yaml
+++ b/queries-lr.yaml
@@ -147,3 +147,15 @@ pg_statio_user_tables:
- tidx_blks_hit:
usage: "COUNTER"
description: "Number of buffer hits in this table's TOAST table indexes (if any)"
+
+pg_custom_database_size_custom:
+ master: true
+ query: "SELECT pg_database.datname, pg_database_size(pg_database.datname) as bytes FROM pg_database"
+ cache_seconds: 30
+ metrics:
+ - datname:
+ usage: "LABEL"
+ description: "Name of the database"
+ - bytes:
+ usage: "GAUGE"
+ description: "Disk space used by the database"
From c685c7a24c45e298cefd078966750f20866fd654 Mon Sep 17 00:00:00 2001
From: Alex Demidoff
Date: Thu, 26 Feb 2026 15:12:05 +0300
Subject: [PATCH 2/3] PMM-14818 Bump Go to 1.25.7
---
go.mod | 2 +-
tools/go.mod | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/go.mod b/go.mod
index bf56422c0..67e405f3e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/prometheus-community/postgres_exporter
-go 1.25.5
+go 1.25.7
require (
github.com/DATA-DOG/go-sqlmock v1.5.2
diff --git a/tools/go.mod b/tools/go.mod
index df21dd3a4..10d49f202 100644
--- a/tools/go.mod
+++ b/tools/go.mod
@@ -1,6 +1,6 @@
module github.com/percona/postgres_exporter/tools
-go 1.25.5
+go 1.25.7
require (
github.com/golangci/golangci-lint/v2 v2.10.1
From bc6085552bec6f55a839c3d91fe3a8c9b1bc00c9 Mon Sep 17 00:00:00 2001
From: Alex Demidoff
Date: Thu, 26 Feb 2026 18:35:56 +0300
Subject: [PATCH 3/3] PMM-14818 Increase the cache refresh interval
---
queries-lr.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/queries-lr.yaml b/queries-lr.yaml
index 6b2c25ccb..d1fdd8661 100644
--- a/queries-lr.yaml
+++ b/queries-lr.yaml
@@ -151,7 +151,7 @@ pg_statio_user_tables:
pg_custom_database_size_custom:
master: true
query: "SELECT pg_database.datname, pg_database_size(pg_database.datname) as bytes FROM pg_database"
- cache_seconds: 30
+ cache_seconds: 60
metrics:
- datname:
usage: "LABEL"