collector

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2016 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

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

Index

Constants

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

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 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 NewLoadavgCollector

func NewLoadavgCollector() (Collector, error)

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

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)

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

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 NewSupervisordCollector

func NewSupervisordCollector() (Collector, error)

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.

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