Documentation
¶
Overview ¶
Exporter is a prometheus exporter using multiple Factories to collect and export system metrics.
Index ¶
- Constants
- Variables
- type Collector
- func NewAttributesCollector(config Config) (Collector, error)
- func NewBondingCollector(config Config) (Collector, error)
- func NewDiskstatsCollector(config Config) (Collector, error)
- func NewFilesystemCollector(config Config) (Collector, error)
- func NewGmondCollector(config Config) (Collector, error)
- func NewInterruptsCollector(config Config) (Collector, error)
- func NewLastLoginCollector(config Config) (Collector, error)
- func NewLoadavgCollector(config Config) (Collector, error)
- func NewMegaCliCollector(config Config) (Collector, error)
- func NewMeminfoCollector(config Config) (Collector, error)
- func NewNetDevCollector(config Config) (Collector, error)
- func NewNetStatCollector(config Config) (Collector, error)
- func NewNtpCollector(config Config) (Collector, error)
- func NewRunitCollector(config Config) (Collector, error)
- func NewStatCollector(config Config) (Collector, error)
- func NewTextFileCollector(config Config) (Collector, error)
- func NewTimeCollector(config Config) (Collector, error)
- type Config
Constants ¶
const Namespace = "node"
Variables ¶
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 NewAttributesCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing labels from the config.
func NewBondingCollector ¶
NewBondingCollector returns a newly allocated bondingCollector. It exposes the number of configured and active slave of linux bonding interfaces.
func NewDiskstatsCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing disk device stats.
func NewFilesystemCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing network device filesystems.
func NewGmondCollector ¶
Takes a config struct and prometheus registry and returns a new Collector scraping ganglia.
func NewInterruptsCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing interrupts stats
func NewLastLoginCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing load, seconds since last login and a list of tags as specified by config.
func NewLoadavgCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing load, seconds since last login and a list of tags as specified by config.
func NewMegaCliCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing RAID status through megacli.
func NewMeminfoCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing memory stats.
func NewNetDevCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing network device stats.
func NewNetStatCollector ¶
NewNetStatCollector takes a config struct and returns a new Collector exposing network stats.
func NewNtpCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing the offset between ntp and the current system time.
func NewRunitCollector ¶
func NewStatCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing network device stats.
func NewTextFileCollector ¶
Takes a config struct and registers a SetMetricFamilyInjectionHook.
func NewTimeCollector ¶
Takes a config struct and prometheus registry and returns a new Collector exposing the current system time in seconds since epoch.