Skip to content

Commit 319e3b2

Browse files
committed
feat: disable default database collector for postgres_exporter
The database collector emits a metric for the size of each database by default. We emit a metric that represents the sum of all database, which suffices for our purposes. This change removes the redundant per-database metric. In order to avoid a change in the AMI metrics, the change is only made for the QEMU artifact.
1 parent 922a11a commit 319e3b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ansible/files/postgres_exporter.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=Postgres Exporter
33

44
[Service]
55
Type=simple
6-
ExecStart=/opt/postgres_exporter/postgres_exporter --disable-settings-metrics --extend.query-path="/opt/postgres_exporter/queries.yml" --disable-default-metrics --no-collector.locks --no-collector.replication --no-collector.replication_slot --no-collector.stat_bgwriter --no-collector.stat_database --no-collector.stat_user_tables --no-collector.statio_user_tables --no-collector.wal
6+
ExecStart=/opt/postgres_exporter/postgres_exporter --disable-settings-metrics --extend.query-path="/opt/postgres_exporter/queries.yml" --disable-default-metrics --no-collector.locks --no-collector.replication --no-collector.replication_slot --no-collector.stat_bgwriter --no-collector.stat_database --no-collector.stat_user_tables --no-collector.statio_user_tables --no-collector.wal {% if qemu_mode is defined and qemu_mode %}--no-collector.database {% endif %}
77
User=postgres
88
Group=postgres
99
Restart=always

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.5.1.001-orioledb"
13-
postgres17: "17.4.1.058"
14-
postgres15: "15.8.1.115"
12+
postgresorioledb-17: "17.5.1.002-orioledb"
13+
postgres17: "17.4.1.059"
14+
postgres15: "15.8.1.116"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)