switch to github.com/prometheus/common/log for logging

pull/152/head
Nick Owens 10 years ago
parent abe4f41937
commit eb79937340
  1. 2
      collector/diskstats_linux.go
  2. 2
      collector/filesystem_freebsd.go
  3. 2
      collector/filesystem_linux.go
  4. 3
      collector/gmond.go
  5. 2
      collector/lastlogin_linux.go
  6. 2
      collector/loadavg.go
  7. 2
      collector/loadavg_linux.go
  8. 2
      collector/mdadm.go
  9. 2
      collector/meminfo_freebsd.go
  10. 2
      collector/meminfo_linux.go
  11. 2
      collector/netdev_linux.go
  12. 2
      collector/ntp.go
  13. 2
      collector/runit.go
  14. 2
      collector/supervisord.go
  15. 5
      collector/textfile.go
  16. 2
      collector/time.go
  17. 2
      node_exporter.go

@ -26,7 +26,7 @@ import (
"strings"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
const (

@ -19,7 +19,7 @@ import (
"errors"
"unsafe"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
/*

@ -21,7 +21,7 @@ import (
"strings"
"syscall"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
const (

@ -25,8 +25,7 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
"github.com/prometheus/node_exporter/collector/ganglia"
)

@ -24,7 +24,7 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
const lastLoginSubsystem = "last_login"

@ -21,7 +21,7 @@ import (
"fmt"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
// #include <stdlib.h>

@ -22,7 +22,7 @@ import (
"strings"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
type loadavgCollector struct {

@ -24,7 +24,7 @@ import (
"strings"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
var (

@ -19,7 +19,7 @@ import (
"errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
/*

@ -25,7 +25,7 @@ import (
"strings"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
const (

@ -26,7 +26,7 @@ import (
"strings"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
var (

@ -22,7 +22,7 @@ import (
"github.com/beevik/ntp"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
var (

@ -17,7 +17,7 @@ package collector
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
"github.com/soundcloud/go-runit/runit"
)

@ -20,7 +20,7 @@ import (
"github.com/kolo/xmlrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
var (

@ -27,10 +27,9 @@ import (
"github.com/golang/protobuf/proto"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/expfmt"
"github.com/prometheus/log"
dto "github.com/prometheus/client_model/go"
"github.com/prometheus/common/expfmt"
"github.com/prometheus/common/log"
)
var (

@ -19,7 +19,7 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
)
type timeCollector struct {

@ -27,7 +27,7 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
"github.com/prometheus/common/log"
"github.com/prometheus/node_exporter/collector"
)

Loading…
Cancel
Save