Documentation
¶
Overview ¶
Package metrics samples container CPU/memory into a SQLite ring buffer for the per-service graphs, plus host CPU/mem/disk under "server:local" refs for the servers screen. No Prometheus, on purpose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StoreHostSample ¶
func StoreHostSample(ctx context.Context, store repo.Store, ref string, now time.Time, s hostmetrics.HostSample)
StoreHostSample writes one host reading under a server ref. The manager samples itself through sampleHost; a worker's arrives from its agent and lands here too, so both nodes' graphs read the same rows.
Types ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
func NewSampler ¶
func (*Sampler) RunFlows ¶
RunFlows samples inter-tile traffic on a fast tick so the graph overlay tracks load changes in seconds, decoupled from the 30s metrics cadence. Blocks; call in a goroutine.
func (*Sampler) SliceStats ¶
SliceStats returns the latest per-resource database stats (copy).
Click to show internal directories.
Click to hide internal directories.