collector

package
v0.14.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Exporter is a prometheus exporter using multiple Factories to collect and export system metrics.

Index

Constants

View Source
const Namespace = "node"
View Source
const (
	ST_RDONLY = 0x1
)

Variables

View Source
var Factories = make(map[string]func() (Collector, error))

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) (err error)
}

Interface a collector has to implement.

func NewBondingCollector

func NewBondingCollector() (Collector, error)

NewBondingCollector returns a newly allocated bondingCollector. It exposes the number of configured and active slave of linux bonding interfaces.

func NewConntrackCollector

func NewConntrackCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing conntrack stats

func NewDiskstatsCollector

func NewDiskstatsCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing disk device stats.

func NewEdacCollector added in v0.14.0

func NewEdacCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing edac stats.

func NewEntropyCollector

func NewEntropyCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing entropy stats

func NewFileFDStatCollector

func NewFileFDStatCollector() (Collector, error)

NewFileFDStatCollector returns a new Collector exposing file-nr stats.

func NewFilesystemCollector

func NewFilesystemCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing Filesystems stats.

func NewGmondCollector

func NewGmondCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector scraping ganglia.

func NewHwMonCollector

func NewHwMonCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing /sys/class/hwmon stats (similar to lm-sensors).

func NewIPVSCollector

func NewIPVSCollector() (Collector, error)

NewIPVSCollector sets up a new collector for IPVS metrics. It accepts the "procfs" config parameter to override the default proc location (/proc).

func NewInterruptsCollector

func NewInterruptsCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing interrupts stats

func NewKsmdCollector

func NewKsmdCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing kernel/system statistics.

func NewLoadavgCollector

func NewLoadavgCollector() (Collector, error)

Take a prometheus registry and return a new Collector exposing load average.

func NewLogindCollector

func NewLogindCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing logind statistics.

func NewMdadmCollector

func NewMdadmCollector() (Collector, error)

Just returns the pointer to an empty struct as we only use throwaway-metrics.

func NewMegaCliCollector

func NewMegaCliCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing RAID status through megacli.

func NewMeminfoCollector

func NewMeminfoCollector() (Collector, error)

NewMeminfoCollector returns a new Collector exposing memory stats.

func NewMeminfoNumaCollector

func NewMeminfoNumaCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing memory stats.

func NewMountStatsCollector added in v0.14.0

func NewMountStatsCollector() (Collector, error)

func NewNetDevCollector

func NewNetDevCollector() (Collector, error)

NewNetDevCollector returns a new Collector exposing network device stats.

func NewNetStatCollector

func NewNetStatCollector() (Collector, error)

NewNetStatCollector takes and returns a new Collector exposing network stats.

func NewNfsCollector added in v0.14.0

func NewNfsCollector() (Collector, error)

func NewNtpCollector

func NewNtpCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing the offset between ntp and the current system time.

func NewRunitCollector

func NewRunitCollector() (Collector, error)

func NewSockStatCollector

func NewSockStatCollector() (Collector, error)

NewSockStatCollector returns a new Collector exposing socket stats.

func NewStatCollector

func NewStatCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing kernel/system statistics.

func NewSupervisordCollector

func NewSupervisordCollector() (Collector, error)

func NewSystemdCollector

func NewSystemdCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing systemd statistics.

func NewTCPStatCollector

func NewTCPStatCollector() (Collector, error)

NewTCPStatCollector takes a returns a new Collector exposing network stats.

func NewTextFileCollector

func NewTextFileCollector() (Collector, error)

Takes a registers a SetMetricFamilyInjectionHook.

func NewTimeCollector

func NewTimeCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing the current system time in seconds since epoch.

func NewWifiCollector added in v0.14.0

func NewWifiCollector() (Collector, error)

func NewZFSCollector added in v0.14.0

func NewZFSCollector() (Collector, error)

func NewvmStatCollector

func NewvmStatCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing vmstat stats.

type TCPConnectionState

type TCPConnectionState int
const (
	TCP_ESTABLISHED TCPConnectionState = iota + 1
	TCP_SYN_SENT
	TCP_SYN_RECV
	TCP_FIN_WAIT1
	TCP_FIN_WAIT2
	TCP_TIME_WAIT
	TCP_CLOSE
	TCP_CLOSE_WAIT
	TCP_LAST_ACK
	TCP_LISTEN
	TCP_CLOSING
)

func (TCPConnectionState) String

func (st TCPConnectionState) String() string

Directories

Path Synopsis
Types for unmarshalling gmond's XML output.
Types for unmarshalling gmond's XML output.

Jump to

Keyboard shortcuts

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