prometheus: only check postgresql if server config exists (#51128)

This commit is contained in:
Frédéric Péters 2021-02-15 14:51:15 +01:00
parent 56c6a8b13b
commit ac8a4682bb
1 changed files with 1 additions and 1 deletions

View File

@ -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():