package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetTotalMemory returns either the total system memory or if possible the cgroups available memory.
GetTotalMemoryWithoutLogging is the same as GetTotalMemory, but returns any warning as a string instead of logging it.
NewHealthChecker creates a new health checker that emits alerts whenever the given metrics are nonzero.
NewMetricsRecorder initializes a new MetricsRecorder object that uses the given clock.
NewRuntimeStatSampler constructs a new RuntimeStatSampler object.

# Structs

A HealthChecker inspects the node metrics and optionally a NodeStatus for anomalous conditions that the operator should be alerted to.
MetricsRecorder is used to periodically record the information in a number of metric registries.
RuntimeStatSampler is used to periodically sample the runtime environment for useful statistics, performing some rudimentary calculations and storing the resulting information in a format that can be easily consumed by status logging systems.