Skip to content

Commit af7bb9c

Browse files
committed
add info around pgbouncer columns avoided
1 parent 4f80c64 commit af7bb9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/collector/pgbouncer_metrics_queries.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
attribute_columns: ["database", "user", "state", "application_name", "link"]
1212
description: "Current waiting time in seconds"
1313

14-
# NOTE: Avoid collecting "host" column because it can be null; the collector will warn against null.
14+
# NOTE: Avoid collecting/using "host", "force_user", and "pool_mode" columns because they
15+
# can be NULL; the collector will warn against NULL even when not used. But it will emit
16+
# an error log if those columns are used.
1517
# The host column should always point either to pgBouncer's virtual database (the null case) or to the primary.
1618
- sql: "SHOW DATABASES"
1719
metrics:

0 commit comments

Comments
 (0)