Skip to content

Commit e649029

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.
1 parent 922a11a commit e649029

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 --no-collector.database
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy