diff --git a/collector/boot_time_solaris.go b/collector/boot_time_solaris.go index e2eca59e..cc6f40c3 100644 --- a/collector/boot_time_solaris.go +++ b/collector/boot_time_solaris.go @@ -18,8 +18,8 @@ package collector import ( "github.com/go-kit/log" + "github.com/illumos/go-kstat" "github.com/prometheus/client_golang/prometheus" - "github.com/siebenmann/go-kstat" ) type bootTimeCollector struct { diff --git a/collector/cpu_solaris.go b/collector/cpu_solaris.go index 75e0c143..842736fb 100644 --- a/collector/cpu_solaris.go +++ b/collector/cpu_solaris.go @@ -20,8 +20,8 @@ import ( "strconv" "github.com/go-kit/log" + "github.com/illumos/go-kstat" "github.com/prometheus/client_golang/prometheus" - kstat "github.com/siebenmann/go-kstat" ) // #include diff --git a/collector/cpufreq_solaris.go b/collector/cpufreq_solaris.go index 80470a08..38672d51 100644 --- a/collector/cpufreq_solaris.go +++ b/collector/cpufreq_solaris.go @@ -21,8 +21,8 @@ import ( "strconv" "github.com/go-kit/log" + "github.com/illumos/go-kstat" "github.com/prometheus/client_golang/prometheus" - kstat "github.com/siebenmann/go-kstat" ) // #include diff --git a/collector/loadavg_solaris.go b/collector/loadavg_solaris.go index 1ef8d312..7c1b9d82 100644 --- a/collector/loadavg_solaris.go +++ b/collector/loadavg_solaris.go @@ -19,7 +19,7 @@ import ( "fmt" "strconv" - "github.com/siebenmann/go-kstat" + "github.com/illumos/go-kstat" ) // #include diff --git a/collector/zfs_solaris.go b/collector/zfs_solaris.go index 0a4da823..51449f16 100644 --- a/collector/zfs_solaris.go +++ b/collector/zfs_solaris.go @@ -20,8 +20,8 @@ import ( "strings" "github.com/go-kit/log" + "github.com/illumos/go-kstat" "github.com/prometheus/client_golang/prometheus" - "github.com/siebenmann/go-kstat" ) type zfsCollector struct { diff --git a/go.mod b/go.mod index 5633d57e..814de17d 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/go-kit/log v0.1.0 github.com/godbus/dbus v0.0.0-20190402143921-271e53dc4968 github.com/hodgesds/perf-utils v0.2.5 + github.com/illumos/go-kstat v0.0.0-20210513183136-173c9b0a9973 github.com/jsimonetti/rtnetlink v0.0.0-20210614053835-9c52e516c709 github.com/lufia/iostat v1.1.0 github.com/mattn/go-xmlrpc v0.0.3 @@ -17,7 +18,7 @@ require ( github.com/prometheus/exporter-toolkit v0.6.0 github.com/prometheus/procfs v0.7.0 github.com/safchain/ethtool v0.0.0-20201023143004-874930cb3ce0 - github.com/siebenmann/go-kstat v0.0.0-20210513183136-173c9b0a9973 + github.com/siebenmann/go-kstat v0.0.0-20210513183136-173c9b0a9973 // indirect github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c gopkg.in/alecthomas/kingpin.v2 v2.2.6 diff --git a/go.sum b/go.sum index 55c2200c..7431a7a5 100644 --- a/go.sum +++ b/go.sum @@ -144,6 +144,8 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hodgesds/perf-utils v0.2.5 h1:X992/V3OaNJRM8Ivcram8Hhxz4JhWiKI0T8iGCJwk2k= github.com/hodgesds/perf-utils v0.2.5/go.mod h1:X3dAE1IoPfsSKR2MDhorGY1mORNDOJTZ+0XTrtmoHFI= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/illumos/go-kstat v0.0.0-20210513183136-173c9b0a9973 h1:hk4LPqXIY/c9XzRbe7dA6qQxaT6Axcbny0L/G5a4owQ= +github.com/illumos/go-kstat v0.0.0-20210513183136-173c9b0a9973/go.mod h1:PoK3ejP3LJkGTzKqRlpvCIFas3ncU02v8zzWDW+g0FY= github.com/josharian/native v0.0.0-20200817173448-b6b71def0850 h1:uhL5Gw7BINiiPAo24A2sxkcDI0Jt/sqp1v5xQCniEFA= github.com/josharian/native v0.0.0-20200817173448-b6b71def0850/go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=