export cluster health as prometheus metrics (#17741)

This commit is contained in:
Harshavardhana
2023-07-28 01:16:53 -07:00
committed by GitHub
parent c2edbfae55
commit 114fab4c70
6 changed files with 117 additions and 48 deletions

View File

@@ -138,8 +138,8 @@ func isServerResolvable(endpoint Endpoint, timeout time.Duration) error {
if err != nil {
return err
}
req.Header.Set("x-minio-from-peer", "true")
// Indicate that the liveness check for a peer call
req.Header.Set(xhttp.MinIOPeerCall, "true")
resp, err := httpClient.Do(req)
if err != nil {