refactor: rename namespace to 'collector'
This commit is contained in:
parent
f99a67b376
commit
2af46d9313
|
@ -1,7 +1,7 @@
|
|||
// returns data points from Win32_PerfRawData_W3SVC_WebService
|
||||
// https://msdn.microsoft.com/en-us/library/aa394345.aspx - Win32_OperatingSystem class
|
||||
|
||||
package collectors
|
||||
package collector
|
||||
|
||||
import (
|
||||
"flag"
|
|
@ -2,7 +2,7 @@
|
|||
// https://msdn.microsoft.com/en-us/windows/hardware/aa394307(v=vs.71) - Win32_PerfRawData_PerfDisk_LogicalDisk class
|
||||
// https://msdn.microsoft.com/en-us/library/ms803973.aspx - LogicalDisk object reference
|
||||
|
||||
package collectors
|
||||
package collector
|
||||
|
||||
import (
|
||||
"flag"
|
|
@ -1,7 +1,7 @@
|
|||
// returns data points from Win32_OperatingSystem
|
||||
// https://msdn.microsoft.com/en-us/library/aa394239 - Win32_OperatingSystem class
|
||||
|
||||
package collectors
|
||||
package collector
|
||||
|
||||
import (
|
||||
"log"
|
|
@ -1,4 +1,4 @@
|
|||
package collectors
|
||||
package collector
|
||||
|
||||
const (
|
||||
wmiNamespace = "wmi"
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/martinlindhe/wmi_exporter/collectors"
|
||||
"github.com/martinlindhe/wmi_exporter/collector"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
|
@ -29,9 +29,9 @@ var _ prometheus.Collector = &WmiExporter{}
|
|||
func NewWmiExporter() *WmiExporter {
|
||||
return &WmiExporter{
|
||||
collectors: []prometheus.Collector{
|
||||
collectors.NewOSCollector(),
|
||||
collectors.NewLogicalDiskCollector(),
|
||||
collectors.NewIISCollector(),
|
||||
collector.NewOSCollector(),
|
||||
collector.NewLogicalDiskCollector(),
|
||||
collector.NewIISCollector(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue