fix PerconaXtraDBCluster health (#16434)

Signed-off-by: Filip Rafaj <filip.rafaj@prusa3d.cz>
Co-authored-by: Filip Rafaj <filip.rafaj@prusa3d.cz>
This commit is contained in:
filiprafaj
2023-11-30 04:32:42 +01:00
committed by GitHub
parent 4875b02b88
commit c602302d62
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ if obj.status ~= nil then
if obj.status.state == "error" then
hs.status = "Degraded"
hs.message = "Cluster is on error: " .. table.concat(obj.status.messages, ", ")
hs.message = "Cluster is on error: " .. table.concat(obj.status.message, ", ")
return hs
end

View File

@@ -12,7 +12,7 @@ status:
pmm: {}
proxysql: {}
pxc:
image: ''
image: ""
ready: 1
size: 2
status: error
@@ -20,5 +20,5 @@ status:
ready: 1
size: 2
state: error
messages:
- we lost node
message:
- we lost node