Documentation
¶
Overview ¶
Package kgstats fetches and caches runtime statistics about the cluster and dataset.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchStats ¶
FetchStats collects the latest statistics from the views. Upon success, it returns the statistics (must be non-nil). Otherwise, it returns a context error or some other transient error.
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
A Fetcher periodically collects stats and caches them.
func NewFetcher ¶
func NewFetcher(fetchStats FetchStats) *Fetcher
NewFetcher constructs a new Fetcher. The caller should subsequently call Run.