Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 0 additions & 14 deletions queries-hr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
12 changes: 12 additions & 0 deletions queries-lr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down