Documentation
¶
Overview ¶
Exporter is a prometheus exporter using multiple Factories to collect and export system metrics.
Index ¶
- Constants
- Variables
- type Collector
- func NewFilesystemCollector() (Collector, error)
- func NewGmondCollector() (Collector, error)
- func NewLoadavgCollector() (Collector, error)
- func NewMegaCliCollector() (Collector, error)
- func NewMeminfoCollector() (Collector, error)
- func NewNtpCollector() (Collector, error)
- func NewRunitCollector() (Collector, error)
- func NewSupervisordCollector() (Collector, error)
- func NewTextFileCollector() (Collector, error)
- func NewTimeCollector() (Collector, error)
Constants ¶
const (
MNT_RDONLY = 0x1
)
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 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 NewLoadavgCollector ¶
Take a prometheus registry and return a new Collector exposing load average.
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 NewNtpCollector ¶
Takes a prometheus registry and returns a new Collector exposing the offset between ntp and the current system time.
func NewRunitCollector ¶
func NewSupervisordCollector ¶
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.