summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-13 03:20:48 -0500
committerJeff Carr <[email protected]>2024-10-13 03:20:48 -0500
commitffe754a96a68e7cf8905344073e3b1eedb78e94b (patch)
treeedb7819d879fc42ca88a78d7f6c7c6b202bf1843 /poll.go
parente149b3218d26b4996fc76072145efda6eb9f9856 (diff)
track the global killcount of virtigod restarts
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/poll.go b/poll.go
index 37a15ac..f7f2414 100644
--- a/poll.go
+++ b/poll.go
@@ -136,6 +136,7 @@ func clusterHealthy() (bool, string) {
}
summary = strings.TrimSpace(summary)
summary += ")"
+ summary += "(killcount=" + fmt.Sprintf("%d", me.killcount) + ")"
if good {
return good, "GOOD=true " + summary
}