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 NewConntrackCollector() (Collector, error)
- func NewDiskstatsCollector() (Collector, error)
- func NewEdacCollector() (Collector, error)
- func NewEntropyCollector() (Collector, error)
- func NewFileFDStatCollector() (Collector, error)
- func NewFilesystemCollector() (Collector, error)
- func NewGmondCollector() (Collector, error)
- func NewHwMonCollector() (Collector, error)
- func NewIPVSCollector() (Collector, error)
- func NewInterruptsCollector() (Collector, error)
- func NewKsmdCollector() (Collector, error)
- func NewLoadavgCollector() (Collector, error)
- func NewLogindCollector() (Collector, error)
- func NewMdadmCollector() (Collector, error)
- func NewMegaCliCollector() (Collector, error)
- func NewMeminfoCollector() (Collector, error)
- func NewMeminfoNumaCollector() (Collector, error)
- func NewMountStatsCollector() (Collector, error)
- func NewNetDevCollector() (Collector, error)
- func NewNetStatCollector() (Collector, error)
- func NewNfsCollector() (Collector, error)
- func NewNtpCollector() (Collector, error)
- func NewRunitCollector() (Collector, error)
- func NewSockStatCollector() (Collector, error)
- func NewStatCollector() (Collector, error)
- func NewSupervisordCollector() (Collector, error)
- func NewSystemdCollector() (Collector, error)
- func NewTCPStatCollector() (Collector, error)
- func NewTextFileCollector() (Collector, error)
- func NewTimeCollector() (Collector, error)
- func NewWifiCollector() (Collector, error)
- func NewZFSCollector() (Collector, error)
- func NewvmStatCollector() (Collector, error)
- type TCPConnectionState
Constants ¶
const Namespace = "node"
const (
ST_RDONLY = 0x1
)
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 NewConntrackCollector ¶
Takes a prometheus registry and returns a new Collector exposing conntrack stats
func NewDiskstatsCollector ¶
Takes a prometheus registry and returns a new Collector exposing disk device stats.
func NewEdacCollector ¶ added in v0.14.0
Takes a prometheus registry and returns a new Collector exposing edac stats.
func NewEntropyCollector ¶
Takes a prometheus registry and returns a new Collector exposing entropy stats
func NewFileFDStatCollector ¶
NewFileFDStatCollector returns a new Collector exposing file-nr stats.
func NewFilesystemCollector ¶
Takes a prometheus registry and returns a new Collector exposing Filesystems stats.
func NewGmondCollector ¶
Takes a prometheus registry and returns a new Collector scraping ganglia.
func NewHwMonCollector ¶
Takes a prometheus registry and returns a new Collector exposing /sys/class/hwmon stats (similar to lm-sensors).
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 NewKsmdCollector ¶
Takes a prometheus registry and returns a new Collector exposing kernel/system statistics.
func NewLoadavgCollector ¶
Take a prometheus registry and return a new Collector exposing load average.
func NewLogindCollector ¶
Takes a prometheus registry and returns a new Collector exposing logind statistics.
func NewMdadmCollector ¶
Just returns the pointer to an empty struct as we only use throwaway-metrics.
func NewMegaCliCollector ¶
Takes a prometheus registry and returns a new Collector exposing RAID status through megacli.
func NewMeminfoCollector ¶
NewMeminfoCollector returns a new Collector exposing memory stats.
func NewMeminfoNumaCollector ¶
Takes a prometheus registry and returns a new Collector exposing memory stats.
func NewMountStatsCollector ¶ added in v0.14.0
func NewNetDevCollector ¶
NewNetDevCollector returns a new Collector exposing network device stats.
func NewNetStatCollector ¶
NewNetStatCollector takes and returns a new Collector exposing network stats.
func NewNfsCollector ¶ added in v0.14.0
func NewNtpCollector ¶
Takes a prometheus registry and returns a new Collector exposing the offset between ntp and the current system time.
func NewRunitCollector ¶
func NewSockStatCollector ¶
NewSockStatCollector returns a new Collector exposing socket stats.
func NewStatCollector ¶
Takes a prometheus registry and returns a new Collector exposing kernel/system statistics.
func NewSupervisordCollector ¶
func NewSystemdCollector ¶
Takes a prometheus registry and returns a new Collector exposing systemd statistics.
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.
func NewWifiCollector ¶ added in v0.14.0
func NewZFSCollector ¶ added in v0.14.0
func NewvmStatCollector ¶
Takes a prometheus registry and returns a new Collector exposing vmstat stats.
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
Source Files ¶
- bonding_linux.go
- collector.go
- conntrack_linux.go
- diskstats_linux.go
- drbd_linux.go
- edac_linux.go
- entropy_linux.go
- filefd_linux.go
- filesystem_common.go
- filesystem_linux.go
- gmond.go
- helper.go
- hwmon_linux.go
- interrupts_common.go
- interrupts_linux.go
- ipvs_linux.go
- ksmd_linux.go
- loadavg.go
- loadavg_linux.go
- logind_linux.go
- mdadm_linux.go
- megacli.go
- meminfo.go
- meminfo_linux.go
- meminfo_numa_linux.go
- mountstats_linux.go
- netdev_common.go
- netdev_linux.go
- netstat_linux.go
- nfs_linux.go
- ntp.go
- paths.go
- runit.go
- sockstat_linux.go
- stat_linux.go
- supervisord.go
- systemd_linux.go
- tcpstat_linux.go
- textfile.go
- time.go
- uname_linux.go
- uname_linux_int8.go
- vmstat_linux.go
- wifi_linux.go
- zfs.go
- zfs_linux.go