mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-29 23:00:49 -08:00
Merge pull request #184 from caskey/master
Build cleanly under windows.
This commit is contained in:
commit
e7a4ea3fe8
|
@ -14,6 +14,7 @@
|
|||
// +build !nointerrupts
|
||||
// +build !darwin
|
||||
// +build !freebsd
|
||||
// +build !windows
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
// +build !noloadavg
|
||||
// +build !windows
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -18,12 +18,9 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"os/signal"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
@ -154,9 +151,6 @@ func main() {
|
|||
nodeCollector := NodeCollector{collectors: collectors}
|
||||
prometheus.MustRegister(nodeCollector)
|
||||
|
||||
sigUsr1 := make(chan os.Signal)
|
||||
signal.Notify(sigUsr1, syscall.SIGUSR1)
|
||||
|
||||
handler := prometheus.Handler()
|
||||
|
||||
http.Handle(*metricsPath, handler)
|
||||
|
|
Loading…
Reference in a new issue