healthcheck

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NodeQuery is a Prometheus query to determine what nodes aren't reachable
	// on any of the currently used SSH ports (22 or 806). Additional filtering
	// based on gmx maintenance, lame-duck mode, or the presence of recent NDT
	// tests on the node is applied. This makes sure we never reboot a node
	// unnecessarily or lose data.
	NodeQuery = `` /* 653-byte string literal not displayed */

	// SwitchQuery is a prometheus query to determine what switches are
	// offline.  To determine if a switch is offline, pings are generally
	// more reliable than SNMP scraping.
	SwitchQuery = `sum_over_time(probe_success{instance=~"s1.*", module="icmp"}[15m]) == 0 unless on(site) gmx_site_maintenance == 1`
)

Functions

func GetRebootable

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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