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 ClocksPerSec = float64(128)

default value. from time.h

View Source
const (
	MNT_RDONLY = 0x1
)
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 NewBuddyinfoCollector added in v0.14.0

func NewBuddyinfoCollector() (Collector, error)

NewBuddyinfoCollector returns a new Collector exposing buddyinfo stats.

func NewCPUCollector added in v0.14.0

func NewCPUCollector() (Collector, error)

Takes a prometheus registry and returns a new Collector exposing CPU 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 NewLoadavgCollector

func NewLoadavgCollector() (Collector, error)

NewLoadavgCollector returns a new Collector exposing load average stats.

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

func NewNetDevCollector() (Collector, error)

NewNetDevCollector returns a new Collector exposing network device stats.

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 NewSupervisordCollector

func NewSupervisordCollector() (Collector, error)

NewSupervisordCollector returns a new Collector exposing supervisord statistics.

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.

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