collector

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package collector includes all individual collectors to gather and export system metrics.

Index

Constants

View Source
const Namespace = "node"

Namespace defines the common namespace to be used by all metrics.

Variables

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

Factories contains the list of all available collectors.

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) error
}

Collector is the 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 NewBuddyinfoCollector added in v0.14.0

func NewBuddyinfoCollector() (Collector, error)

NewBuddyinfoCollector returns a new Collector exposing buddyinfo stats.

func NewConntrackCollector

func NewConntrackCollector() (Collector, error)

NewConntrackCollector returns a new Collector exposing conntrack stats.

func NewDiskstatsCollector

func NewDiskstatsCollector() (Collector, error)

NewDiskstatsCollector returns a new Collector exposing disk device stats.

func NewEdacCollector added in v0.14.0

func NewEdacCollector() (Collector, error)

NewEdacCollector returns a new Collector exposing edac stats.

func NewEntropyCollector

func NewEntropyCollector() (Collector, error)

NewEntropyCollector 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)

NewFilesystemCollector returns a new Collector exposing filesystems stats.

func NewGmondCollector

func NewGmondCollector() (Collector, error)

NewGmondCollector returns a new Collector scraping ganglia.

func NewHwMonCollector

func NewHwMonCollector() (Collector, error)

NewHwMonCollector 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 NewInfiniBandCollector added in v0.14.0

func NewInfiniBandCollector() (Collector, error)

NewInfiniBandCollector returns a new Collector exposing InfiniBand stats.

func NewInterruptsCollector

func NewInterruptsCollector() (Collector, error)

NewInterruptsCollector returns a new Collector exposing interrupts stats.

func NewKsmdCollector

func NewKsmdCollector() (Collector, error)

NewKsmdCollector returns a new Collector exposing kernel/system statistics.

func NewLoadavgCollector

func NewLoadavgCollector() (Collector, error)

NewLoadavgCollector returns a new Collector exposing load average stats.

func NewLogindCollector

func NewLogindCollector() (Collector, error)

NewLogindCollector returns a new Collector exposing logind statistics.

func NewMdadmCollector

func NewMdadmCollector() (Collector, error)

NewMdadmCollector returns a new Collector exposing raid statistics.

func NewMegaCliCollector

func NewMegaCliCollector() (Collector, error)

NewMegaCliCollector 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)

NewMeminfoNumaCollector returns a new Collector exposing memory stats.

func NewMountStatsCollector added in v0.14.0

func NewMountStatsCollector() (Collector, error)

NewMountStatsCollector returns a new Collector exposing NFS statistics.

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)

NewNfsCollector returns a new Collector exposing NFS statistics.

func NewNtpCollector

func NewNtpCollector() (Collector, error)

NewNtpCollector returns a new Collector exposing the offset between ntp and the current system time.

func NewRunitCollector

func NewRunitCollector() (Collector, error)

NewRunitCollector returns a new Collector exposing runit statistics.

func NewSockStatCollector

func NewSockStatCollector() (Collector, error)

NewSockStatCollector returns a new Collector exposing socket stats.

func NewStatCollector

func NewStatCollector() (Collector, error)

NewStatCollector returns a new Collector exposing kernel/system statistics.

func NewSupervisordCollector

func NewSupervisordCollector() (Collector, error)

NewSupervisordCollector returns a new Collector exposing supervisord statistics.

func NewSystemdCollector

func NewSystemdCollector() (Collector, error)

NewSystemdCollector 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)

NewTextFileCollector returns a new Collector exposing metrics read from files in the given textfile directory.

func NewTimeCollector

func NewTimeCollector() (Collector, error)

NewTimeCollector returns a new Collector exposing the current system time in seconds since epoch.

func NewWifiCollector added in v0.14.0

func NewWifiCollector() (Collector, error)

NewWifiCollector returns a new Collector exposing Wifi statistics.

func NewZFSCollector added in v0.14.0

func NewZFSCollector() (Collector, error)

NewZFSCollector returns a new Collector exposing ZFS statistics.

func NewvmStatCollector

func NewvmStatCollector() (Collector, error)

NewvmStatCollector returns a new Collector exposing vmstat stats.

Directories

Path Synopsis
Package ganglia provides types for unmarshalling gmond's XML output.
Package ganglia provides 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