sysmetrics

package
v0.0.0-...-21a53f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

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 FilterAvailableCollectors

func FilterAvailableCollectors(collectors string) string

func LoadCollectors

func LoadCollectors(list string) (map[string]collector.Collector, error)

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 New

func New(collectors map[string]collector.Collector) NodeCollector

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL