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/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..d1fdd8661 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: 60 + metrics: + - datname: + usage: "LABEL" + description: "Name of the database" + - bytes: + usage: "GAUGE" + description: "Disk space used by the database" 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