Skip to content

Commit c42d046

Browse files
authored
Merge pull request #2622 from prometheus/superq/update_exporter-toolkit
Update exporter-toolkit
2 parents 4a78012 + c23b76b commit c42d046

37 files changed

+79
-74
lines changed

collector/arp_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ package collector
1818

1919
import (
2020
"fmt"
21+
"github.com/alecthomas/kingpin/v2"
2122
"github.com/go-kit/log"
2223
"github.com/prometheus/client_golang/prometheus"
2324
"github.com/prometheus/procfs"
24-
"gopkg.in/alecthomas/kingpin.v2"
2525
)
2626

2727
var (

collector/bcache_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ package collector
1919
import (
2020
"fmt"
2121

22+
"github.com/alecthomas/kingpin/v2"
2223
"github.com/go-kit/log"
2324
"github.com/prometheus/client_golang/prometheus"
2425
"github.com/prometheus/procfs/bcache"
25-
"gopkg.in/alecthomas/kingpin.v2"
2626
)
2727

2828
var (

collector/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"sync"
2121
"time"
2222

23+
"github.com/alecthomas/kingpin/v2"
2324
"github.com/go-kit/log"
2425
"github.com/go-kit/log/level"
2526
"github.com/prometheus/client_golang/prometheus"
26-
kingpin "gopkg.in/alecthomas/kingpin.v2"
2727
)
2828

2929
// Namespace defines the common namespace to be used by all metrics.

collector/cpu_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ import (
2424
"strconv"
2525
"sync"
2626

27+
"github.com/alecthomas/kingpin/v2"
2728
"github.com/go-kit/log"
2829
"github.com/go-kit/log/level"
2930
"github.com/prometheus/client_golang/prometheus"
3031
"github.com/prometheus/procfs"
3132
"github.com/prometheus/procfs/sysfs"
3233
"golang.org/x/exp/maps"
3334
"golang.org/x/exp/slices"
34-
"gopkg.in/alecthomas/kingpin.v2"
3535
)
3636

3737
type cpuCollector struct {

collector/diskstats_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ package collector
2020
import (
2121
"errors"
2222

23+
"github.com/alecthomas/kingpin/v2"
2324
"github.com/go-kit/log"
2425
"github.com/go-kit/log/level"
2526
"github.com/prometheus/client_golang/prometheus"
26-
"gopkg.in/alecthomas/kingpin.v2"
2727
)
2828

2929
const (

collector/ethtool_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ import (
3030
"sync"
3131
"syscall"
3232

33+
"github.com/alecthomas/kingpin/v2"
3334
"github.com/go-kit/log"
3435
"github.com/go-kit/log/level"
3536
"github.com/prometheus/client_golang/prometheus"
3637
"github.com/prometheus/procfs/sysfs"
3738
"github.com/safchain/ethtool"
3839
"golang.org/x/sys/unix"
39-
"gopkg.in/alecthomas/kingpin.v2"
4040
)
4141

4242
var (

collector/filesystem_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import (
2121
"errors"
2222
"regexp"
2323

24+
"github.com/alecthomas/kingpin/v2"
2425
"github.com/go-kit/log"
2526
"github.com/go-kit/log/level"
2627
"github.com/prometheus/client_golang/prometheus"
27-
"gopkg.in/alecthomas/kingpin.v2"
2828
)
2929

3030
// Arch-dependent implementation must define:

collector/filesystem_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626
"sync"
2727
"time"
2828

29+
"github.com/alecthomas/kingpin/v2"
2930
"github.com/go-kit/log"
3031
"github.com/go-kit/log/level"
3132
"golang.org/x/sys/unix"
32-
"gopkg.in/alecthomas/kingpin.v2"
3333
)
3434

3535
const (

collector/filesystem_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"strings"
1919
"testing"
2020

21-
kingpin "gopkg.in/alecthomas/kingpin.v2"
21+
"github.com/alecthomas/kingpin/v2"
2222
)
2323

2424
func Test_parseFilesystemLabelsError(t *testing.T) {

collector/ipvs_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import (
2424
"strconv"
2525
"strings"
2626

27+
"github.com/alecthomas/kingpin/v2"
2728
"github.com/go-kit/log"
2829
"github.com/go-kit/log/level"
2930
"github.com/prometheus/client_golang/prometheus"
3031
"github.com/prometheus/procfs"
31-
kingpin "gopkg.in/alecthomas/kingpin.v2"
3232
)
3333

3434
type ipvsCollector struct {

0 commit comments

Comments
 (0)