Documentation
¶
Overview ¶
Package nodehost reads the node's CPU, memory, filesystems, and physical network interface counters for the node agent, with node_exporter series names.
Index ¶
Constants ¶
View Source
const DefaultMaxDevices = 64
DefaultMaxDevices bounds the network devices read per gather.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector gathers node_cpu_*, node_memory_*, node_filesystem_*, and node_network_* series.
type Options ¶
type Options struct {
// ProcPath holds meminfo; a container's /proc reports the node's memory.
ProcPath string
// SysPath is the node's sysfs; it must be the host mount, since a pod's own /sys lists only the pod's interfaces.
SysPath string
// Filesystems are host paths mounted into the agent; each distinct filesystem among them is reported once, labeled with the first path.
Filesystems []string
Node string
MaxDevices int
}
Options configures a Collector.
Click to show internal directories.
Click to hide internal directories.