windows_exporter/collector/wmi.go
2016-09-24 20:52:56 +02:00

21 lines
451 B
Go

package collector
import "github.com/prometheus/client_golang/prometheus"
// ...
const (
Namespace = "wmi"
// Conversion factors
ticksToSecondsScaleFactor = 1 / 1e7
)
// Factories ...
var Factories = make(map[string]func() (Collector, error))
// Collector is the interface a collector has to implement.
type Collector interface {
// Get new metrics and expose them via prometheus registry.
Collect(ch chan<- prometheus.Metric) (err error)
}