package
0.0.0-20191101101117-7375b2fc63f1
Repository: https://github.com/glvd/cluster.git
Documentation: pkg.go.dev

# Functions

NewChecker creates a Checker using the given MetricsStore.
NewStore can be used to create a Store.
NewWindow creates an instance with the given window capacity.
PeersetFilter removes all metrics not belonging to the given peerset.

# Variables

AlertChannelCap specifies how much buffer the alerts channel has.
DefaultWindowCap sets the amount of metrics to store per peer.
ErrAlertChannelFull is returned if the alert channel is full.
ErrNoMetrics is returned when there are no metrics in a Window.
MaxAlertThreshold specifies how many alerts will occur per a peer is removed from the list of monitored peers.

# Structs

Checker provides utilities to find expired metrics for a given peerset and send alerts if it proceeds to do so.
Store can be used to store and access metrics.
Window implements a circular queue to store metrics.

# Type aliases

PeerMetrics maps a peer IDs to a metrics window.