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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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