Documentation
¶
Overview ¶
Exporter is a prometheus exporter using multiple Factories to collect and export system metrics.
Index ¶
- Constants
- Variables
- type Collector
- func NewBondingCollector() (Collector, error)
- func NewDiskstatsCollector() (Collector, error)
- func NewFilesystemCollector() (Collector, error)
- func NewGmondCollector() (Collector, error)
- func NewIPVSCollector() (Collector, error)
- func NewInterruptsCollector() (Collector, error)
- func NewLastLoginCollector() (Collector, error)
- func NewLoadavgCollector() (Collector, error)
- func NewMegaCliCollector() (Collector, error)
- func NewMeminfoCollector() (Collector, error)
- func NewNetDevCollector() (Collector, error)
- func NewNetStatCollector() (Collector, error)
- func NewNtpCollector() (Collector, error)
- func NewRunitCollector() (Collector, error)
- func NewStatCollector() (Collector, error)
- func NewTCPStatCollector() (Collector, error)
- func NewTextFileCollector() (Collector, error)
- func NewTimeCollector() (Collector, error)
- type TCPConnectionState
Constants ¶
const Namespace = "node"
Variables ¶
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 NewBondingCollector ¶
NewBondingCollector returns a newly allocated bondingCollector. It exposes the number of configured and active slave of linux bonding interfaces.
func NewDiskstatsCollector ¶
Takes a prometheus registry and returns a new Collector exposing disk device stats.
func NewFilesystemCollector ¶
Takes a prometheus registry and returns a new Collector exposing network device filesystems.
func NewGmondCollector ¶
Takes a prometheus registry and returns a new Collector scraping ganglia.
func NewIPVSCollector ¶
NewIPVSCollector sets up a new collector for IPVS metrics. It accepts the "procfs" config parameter to override the default proc location (/proc).
func NewInterruptsCollector ¶
Takes a prometheus registry and returns a new Collector exposing interrupts stats
func NewLastLoginCollector ¶
Takes a 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 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 prometheus registry and returns a new Collector exposing RAID status through megacli.
func NewMeminfoCollector ¶
Takes a prometheus registry and returns a new Collector exposing memory stats.
func NewNetDevCollector ¶
Takes a prometheus registry and returns a new Collector exposing network device stats.
func NewNetStatCollector ¶
NewNetStatCollector takes a returns a new Collector exposing network stats.
func NewNtpCollector ¶
Takes a prometheus registry and returns a new Collector exposing the offset between ntp and the current system time.
func NewRunitCollector ¶
func NewStatCollector ¶
Takes a prometheus registry and returns a new Collector exposing network device stats.
func NewTCPStatCollector ¶
NewTCPStatCollector takes a returns a new Collector exposing network stats.
func NewTextFileCollector ¶
Takes a registers a SetMetricFamilyInjectionHook.
func NewTimeCollector ¶
Takes a prometheus registry and returns a new Collector exposing the current system time in seconds since epoch.
type TCPConnectionState ¶
type TCPConnectionState int
const ( TCP_ESTABLISHED TCPConnectionState = iota + 1 TCP_SYN_SENT TCP_SYN_RECV TCP_FIN_WAIT1 TCP_FIN_WAIT2 TCP_TIME_WAIT TCP_CLOSE TCP_CLOSE_WAIT TCP_LAST_ACK TCP_LISTEN TCP_CLOSING )
func (TCPConnectionState) String ¶
func (st TCPConnectionState) String() string