From 319e3b2984887f7c7f7a2a9d2020068ceb2c2b07 Mon Sep 17 00:00:00 2001 From: Div Arora Date: Thu, 17 Jul 2025 18:28:07 +0800 Subject: [PATCH] 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. --- ansible/files/postgres_exporter.service.j2 | 2 +- ansible/vars.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/files/postgres_exporter.service.j2 b/ansible/files/postgres_exporter.service.j2 index 0066a76b2..fd8b2a897 100644 --- a/ansible/files/postgres_exporter.service.j2 +++ b/ansible/files/postgres_exporter.service.j2 @@ -3,7 +3,7 @@ Description=Postgres Exporter [Service] Type=simple -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 +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 %} User=postgres Group=postgres Restart=always diff --git a/ansible/vars.yml b/ansible/vars.yml index 830c94fb2..d3c1594b1 100644 --- a/ansible/vars.yml +++ b/ansible/vars.yml @@ -9,9 +9,9 @@ postgres_major: # Full version strings for each major version postgres_release: - postgresorioledb-17: "17.5.1.001-orioledb" - postgres17: "17.4.1.058" - postgres15: "15.8.1.115" + postgresorioledb-17: "17.5.1.002-orioledb" + postgres17: "17.4.1.059" + postgres15: "15.8.1.116" # Non Postgres Extensions pgbouncer_release: "1.19.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