Add Patroni output to debug logs
This commit is contained in:
parent
bf158dc2d9
commit
157b8c20bf
|
@ -105,6 +105,7 @@ class MonitoringPluginScript(MonitoringPlugin):
|
||||||
_, stdout, _ = run_os_command("patronictl --config-file /etc/patroni/config.yml list --format json")
|
_, stdout, _ = run_os_command("patronictl --config-file /etc/patroni/config.yml list --format json")
|
||||||
patronictl_status = jloads(stdout)
|
patronictl_status = jloads(stdout)
|
||||||
this_node_patronictl_status = [p for p in patronictl_status if p["Member"] == self.this_node.name][0]
|
this_node_patronictl_status = [p for p in patronictl_status if p["Member"] == self.this_node.name][0]
|
||||||
|
self.logger.out(f"{this_node_patronictl_status}", state="d")
|
||||||
|
|
||||||
if health_delta == 0 and not this_node_patronictl_status:
|
if health_delta == 0 and not this_node_patronictl_status:
|
||||||
health_delta = 10
|
health_delta = 10
|
||||||
|
|
Loading…
Reference in New Issue