Documentation ¶
Overview ¶
Package collector includes all individual collectors to gather and export system metrics.
Index ¶
- func NewNodeCollector() (*nodeCollector, error)
- type Collector
- func NewBuddyinfoCollector() (Collector, error)
- func NewGmondCollector() (Collector, error)
- func NewMegaCliCollector() (Collector, error)
- func NewNtpCollector() (Collector, error)
- func NewRunitCollector() (Collector, error)
- func NewSupervisordCollector() (Collector, error)
- func NewTextFileCollector() (Collector, error)
- func NewTimeCollector() (Collector, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeCollector ¶ added in v0.15.0
func NewNodeCollector() (*nodeCollector, error)
NewNodeCollector creates a new NodeCollector
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.15.0
NewBuddyinfoCollector returns a new Collector exposing buddyinfo stats.
func NewGmondCollector ¶
NewGmondCollector returns a new Collector scraping ganglia.
func NewMegaCliCollector ¶
NewMegaCliCollector returns a new Collector exposing RAID status through megacli.
func NewNtpCollector ¶
NewNtpCollector returns a new Collector exposing sanity of local NTP server. Default definition of "local" is: - collector.ntp.server address is a loopback address (or collector.ntp.server-is-mine flag is turned on) - the server is reachable with outgoin IP_TTL = 1
func NewRunitCollector ¶
NewRunitCollector returns a new Collector exposing runit statistics.
func NewSupervisordCollector ¶
NewSupervisordCollector returns a new Collector exposing supervisord statistics.
func NewTextFileCollector ¶
NewTextFileCollector returns a new Collector exposing metrics read from files in the given textfile directory.
func NewTimeCollector ¶
NewTimeCollector returns a new Collector exposing the current system time in seconds since epoch.