windows_exporter/collector/wmi.go

18 lines
390 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-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)
}