mirror of
https://github.com/prometheus-community/windows_exporter
synced 2024-12-28 09:22:06 +00:00
21 lines
451 B
Go
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)
|
|
}
|