windows_exporter/collector/wmi.go

21 lines
451 B
Go
Raw Normal View History

package collector
2016-08-26 06:59:27 +00:00
import "github.com/prometheus/client_golang/prometheus"
// ...
2016-08-26 06:59:27 +00:00
const (
Namespace = "wmi"
2016-09-17 15:11:35 +00:00
// Conversion factors
ticksToSecondsScaleFactor = 1 / 1e7
2016-08-26 06:59:27 +00:00
)
// 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)
}