Skip to content

Commit

Permalink
group prometheus imports
Browse files Browse the repository at this point in the history
Signed-off-by: SungJin1212 <[email protected]>
  • Loading branch information
SungJin1212 committed Jan 16, 2025
1 parent f99e6db commit 85b9e94
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion engine/enginefuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ import (
"github.com/efficientgo/core/errors"
"github.com/efficientgo/core/testutil"
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/require"

"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/promql/parser"
"github.com/prometheus/prometheus/promql/promqltest"
"github.com/prometheus/prometheus/storage"
"github.com/prometheus/prometheus/util/teststorage"
"github.com/stretchr/testify/require"

"github.com/thanos-io/promql-engine/api"
"github.com/thanos-io/promql-engine/engine"
Expand Down
3 changes: 2 additions & 1 deletion execution/aggregate/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import (
"math"

"github.com/efficientgo/core/errors"
"gonum.org/v1/gonum/floats"

"github.com/prometheus/prometheus/model/histogram"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"
"gonum.org/v1/gonum/floats"

"github.com/thanos-io/promql-engine/execution/warnings"
)
Expand Down
4 changes: 2 additions & 2 deletions execution/aggregate/hashaggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"time"

"github.com/efficientgo/core/errors"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"
"golang.org/x/exp/slices"

"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"

"github.com/thanos-io/promql-engine/execution/model"
"github.com/thanos-io/promql-engine/execution/parse"
Expand Down
4 changes: 2 additions & 2 deletions execution/aggregate/khashaggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"time"

"github.com/efficientgo/core/errors"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"
"golang.org/x/exp/slices"

"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"

"github.com/thanos-io/promql-engine/execution/model"
"github.com/thanos-io/promql-engine/execution/warnings"
Expand Down
4 changes: 2 additions & 2 deletions execution/binary/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import (

"github.com/cespare/xxhash/v2"
"github.com/efficientgo/core/errors"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"
"github.com/zhangyunhao116/umap"
"golang.org/x/exp/slices"

"github.com/prometheus/prometheus/model/histogram"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
"github.com/prometheus/prometheus/promql/parser/posrange"
"github.com/prometheus/prometheus/util/annotations"

"github.com/thanos-io/promql-engine/execution/model"
"github.com/thanos-io/promql-engine/execution/warnings"
Expand Down
1 change: 1 addition & 0 deletions logicalplan/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/cortexproject/promqlsmith"
"github.com/efficientgo/core/testutil"

"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"

Expand Down
1 change: 0 additions & 1 deletion logicalplan/passthrough_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/efficientgo/core/testutil"
"github.com/prometheus/prometheus/model/labels"

"github.com/prometheus/prometheus/promql/parser"

"github.com/thanos-io/promql-engine/api"
Expand Down
3 changes: 1 addition & 2 deletions logicalplan/propagate_selectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import (
"sort"

"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/util/annotations"

"github.com/prometheus/prometheus/promql/parser"
"github.com/prometheus/prometheus/util/annotations"

"github.com/thanos-io/promql-engine/query"
)
Expand Down
1 change: 1 addition & 0 deletions storage/prometheus/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"strings"

"github.com/cespare/xxhash/v2"

"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/storage"
)
Expand Down

0 comments on commit 85b9e94

Please sign in to comment.