From dc6b4ee8178d0ac1d2e160172d0c3af3aadd3840 Mon Sep 17 00:00:00 2001 From: Thomas Kleinendorst Date: Mon, 30 Dec 2024 11:43:35 +0100 Subject: [PATCH] Fix Postgres Prometheus exporter --- roles/postgres/templates/docker-compose.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/postgres/templates/docker-compose.yaml.j2 b/roles/postgres/templates/docker-compose.yaml.j2 index be6a638..6f155f9 100644 --- a/roles/postgres/templates/docker-compose.yaml.j2 +++ b/roles/postgres/templates/docker-compose.yaml.j2 @@ -22,6 +22,8 @@ services: image: quay.io/prometheuscommunity/postgres-exporter:{{ versions.postgres.prometheus_exporter }} ports: - "0.0.0.0:9187:9187" + # See: https://github.com/prometheus-community/postgres_exporter/issues/1060#issuecomment-2420235829 + command: "--no-collector.stat_bgwriter" environment: DATA_SOURCE_URI: "postgres.kleinendorst.info:5432/postgres" DATA_SOURCE_USER: "postgres"