prometheus: only check postgresql if server config exists (#51128)
This commit is contained in:
parent
56c6a8b13b
commit
ac8a4682bb
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue