refactor: rename namespace to 'collector'

This commit is contained in:
Martin Lindhe 2016-09-01 14:55:35 +02:00
parent f99a67b376
commit 2af46d9313
5 changed files with 8 additions and 8 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -1,4 +1,4 @@
package collectors
package collector
const (
wmiNamespace = "wmi"

View File

@ -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(),
},
}
}