From ac8a4682bb72fa4171ce7b0a9b88d932014ba695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 15 Feb 2021 14:51:15 +0100 Subject: [PATCH] prometheus: only check postgresql if server config exists (#51128) --- .../prometheus-entrouvert-exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus-entrouvert-exporter/prometheus-entrouvert-exporter.py b/prometheus-entrouvert-exporter/prometheus-entrouvert-exporter.py index df9d3cb..e0d2762 100755 --- a/prometheus-entrouvert-exporter/prometheus-entrouvert-exporter.py +++ b/prometheus-entrouvert-exporter/prometheus-entrouvert-exporter.py @@ -154,7 +154,7 @@ def mailboxes(ctn): def postgresql(ctn): - if not os.path.isdir("/var/lib/postgresql"): + if not glob.glob("/etc/postgresql/*/main/postgresql.conf"): return def get_last_backup_delta():