Documentation
¶
Overview ¶
Package hostmetrics samples the agent process's runtime health for the Heartbeat frame: CPU share, memory, goroutines, GC pauses, and the framework database pool. Standard library only; fields a platform cannot report ship as zero and the UI renders them as absent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
Sampler produces HostMetrics samples. Safe for use from the heartbeat goroutine; CPU deltas are tracked between consecutive Collect calls.
func (*Sampler) Collect ¶
func (s *Sampler) Collect() *adminv1.HostMetrics
Collect returns a point-in-time sample.
Click to show internal directories.
Click to hide internal directories.