healthcheck

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CandidatesQuery = `` /* 931-byte string literal not displayed */

CandidatesQuery is a Prometheus query to determine what machines need to be rebooted. A machine is to be rebooted if it's unreachable via SSH or it's taking too long to boot, unless it's in GMX, lame-duck or its whole site is currently offline.

Functions

func GetOfflineNodes added in v0.2.0

func GetOfflineNodes(prom promtest.PromClient, minutes int) ([]node.Node, error)

GetOfflineNodes checks for offline nodes in the last N minutes. It returns a Vector of samples.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL