Skip to content

Commit

Permalink
Merge pull request #177 from epk/epk/fix-module-path
Browse files Browse the repository at this point in the history
Update module path to adhere with Go versioning guidelines
  • Loading branch information
bobrik authored Jan 19, 2023
2 parents 5b06280 + cdd8d68 commit 4ae8d7b
Show file tree
Hide file tree
Showing 27 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion benchmark/getpid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"unsafe"

"github.com/aquasecurity/libbpfgo"
"github.com/cloudflare/ebpf_exporter/util"
"github.com/cloudflare/ebpf_exporter/v2/util"
)

func BenchmarkGetpidWithoutAnyProbes(b *testing.B) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/ebpf_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"time"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/exporter"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/exporter"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/version"
Expand Down
4 changes: 2 additions & 2 deletions decoder/cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path/filepath"
"strconv"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/util"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/util"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion decoder/cgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestCgroupDecoder(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

// ErrSkipLabelSet instructs exporter to skip label set
Expand Down
2 changes: 1 addition & 1 deletion decoder/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestDecodeLabels(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion decoder/dname.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package decoder

import (
"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

// Dname is a decoder that decodes DNS qname wire format
Expand Down
2 changes: 1 addition & 1 deletion decoder/dname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestDnameDecoder(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion decoder/inet_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package decoder
import (
"net"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

// InetIP is a decoder that transforms an ip byte representation into a string
Expand Down
2 changes: 1 addition & 1 deletion decoder/inet_ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestInetIpDecoder(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions decoder/ksym.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package decoder
import (
"fmt"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/util"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/util"
"github.com/iovisor/gobpf/pkg/ksym"
)

Expand Down
2 changes: 1 addition & 1 deletion decoder/ksym_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestKsymDecoder(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions decoder/majorminor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strconv"
"strings"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/util"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/util"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion decoder/majorminor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestMajorMinorDecoder(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion decoder/regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"regexp"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

// Regexp is a decoder that only allows inputs matching regexp
Expand Down
2 changes: 1 addition & 1 deletion decoder/regexp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestRegexpDecoder(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion decoder/static_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package decoder
import (
"fmt"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

// StaticMap is a decoded that maps values according to a static map
Expand Down
2 changes: 1 addition & 1 deletion decoder/static_map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestStaticMapDecoder(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion decoder/string.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package decoder

import (
"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

// String is a decoder that decodes strings coming from the kernel
Expand Down
2 changes: 1 addition & 1 deletion decoder/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestStringDecoder(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions decoder/uint.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strconv"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/util"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/util"
)

// UInt is a decoder that transforms unsigned integers into their string values
Expand Down
2 changes: 1 addition & 1 deletion decoder/uint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"testing"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func TestUIntDecoder(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion exporter/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"

"github.com/aquasecurity/libbpfgo"
"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

func attachModule(module *libbpfgo.Module, cfg config.Config) (map[*libbpfgo.BPFProg]bool, error) {
Expand Down
6 changes: 3 additions & 3 deletions exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"unsafe"

"github.com/aquasecurity/libbpfgo"
"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/decoder"
"github.com/cloudflare/ebpf_exporter/util"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/decoder"
"github.com/cloudflare/ebpf_exporter/v2/util"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
2 changes: 1 addition & 1 deletion exporter/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/v2/config"
)

type histogramWithLabels struct {
Expand Down
4 changes: 2 additions & 2 deletions exporter/perf_event_array.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"time"

"github.com/aquasecurity/libbpfgo"
"github.com/cloudflare/ebpf_exporter/config"
"github.com/cloudflare/ebpf_exporter/decoder"
"github.com/cloudflare/ebpf_exporter/v2/config"
"github.com/cloudflare/ebpf_exporter/v2/decoder"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cloudflare/ebpf_exporter
module github.com/cloudflare/ebpf_exporter/v2

go 1.17

Expand Down

0 comments on commit 4ae8d7b

Please sign in to comment.