Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultCollectors = "cpu,diskstats,entropy,filefd,filesystem,loadavg,meminfo,netdev,netstat,sockstat,stat,textfile,time,uname,version,vmstat"
)
Variables ¶
This section is empty.
Functions ¶
func StartupMetrics ¶
func StartupMetrics(listenAddr, enabledCollectors string)
StartupMetrics fires up the prom metrics interface (on port 9100 by default) it also enables the default system level metrics or those provided in "enabledCollectors"
Types ¶
type NodeCollector ¶
type NodeCollector struct {
// contains filtered or unexported fields
}
NodeCollector implements the prometheus.Collector interface.
func (NodeCollector) Collect ¶
func (n NodeCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (NodeCollector) Describe ¶
func (n NodeCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.