Skip to content

Commit

Permalink
Merge pull request #85 from K-Phoen/grabana-v0.18.0
Browse files Browse the repository at this point in the history
Use grabana v0.18.0
  • Loading branch information
K-Phoen authored Nov 19, 2021
2 parents 9df8722 + f51fcd3 commit 576edbc
Show file tree
Hide file tree
Showing 56 changed files with 184 additions and 63 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/K-Phoen/dark
go 1.17

require (
github.com/K-Phoen/grabana v0.17.6
github.com/grafana-tools/sdk v0.0.0-20211109141249-6856e1821d44
github.com/K-Phoen/grabana v0.18.1
github.com/K-Phoen/sdk v0.0.0-20211119151408-adef1e5fdd11
github.com/spf13/cobra v1.2.1
github.com/stretchr/testify v1.7.0
github.com/voi-oss/svc v0.7.6
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6L
github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/K-Phoen/grabana v0.17.6 h1:kJc5TVW6D2d2hr4yOTJcB8f9KicQ10EtHUZ6oCVCaeg=
github.com/K-Phoen/grabana v0.17.6/go.mod h1:iStLPl5QAzykF/zI8UDPMOFO1hLd8lohUoHj6QauPyg=
github.com/K-Phoen/grabana v0.18.1 h1:L9kFCCRyaH6EucYZ2sepgLUXicNEtrdPa0l84DbRb+M=
github.com/K-Phoen/grabana v0.18.1/go.mod h1:e6GwAnk6L0g+tba2yhKdzWvDah8cPPlwPptyrnkK8ng=
github.com/K-Phoen/sdk v0.0.0-20211119151408-adef1e5fdd11 h1:bcJqfzSQge+pyJ1beMzUmf3bh9bRyIzEFu8PXUx8Hgk=
github.com/K-Phoen/sdk v0.0.0-20211119151408-adef1e5fdd11/go.mod h1:fnbOsbRksULSfcXjOI6W1/HISz5o/u1iEhF/fLedqTg=
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=
Expand Down Expand Up @@ -257,8 +259,6 @@ github.com/gosimple/slug v1.11.2 h1:MxFR0TmQ/qz0KvIrBbf4phu+G0RBgpwxOn6jPKFKFOw=
github.com/gosimple/slug v1.11.2/go.mod h1:UiRaFH+GEilHstLUmcBgWcI42viBN7mAb818JrYOeFQ=
github.com/gosimple/unidecode v1.0.1 h1:hZzFTMMqSswvf0LBJZCZgThIZrpDHFXux9KeGmn6T/o=
github.com/gosimple/unidecode v1.0.1/go.mod h1:CP0Cr1Y1kogOtx0bJblKzsVWrqYaqfNOnHzpgWw4Awc=
github.com/grafana-tools/sdk v0.0.0-20211109141249-6856e1821d44 h1:cze5Hg068vDXQl8x/mmO8rMuJ49g/UBCl/VM/62eLJ8=
github.com/grafana-tools/sdk v0.0.0-20211109141249-6856e1821d44/go.mod h1:AHHlOEv1+GGQ3ktHMlhuTUwo3zljV3QJbC0+8o2kn+4=
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/converter/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/K-Phoen/grabana/singlestat"
grabanaTable "github.com/K-Phoen/grabana/table"
"github.com/K-Phoen/grabana/target/stackdriver"
"github.com/grafana-tools/sdk"
"github.com/K-Phoen/sdk"
"go.uber.org/zap"
"gopkg.in/yaml.v3"
)
Expand Down Expand Up @@ -1011,7 +1011,7 @@ func (converter *JSON) convertStackdriverTarget(target sdk.Target) *grabana.Targ
Filters: converter.convertStackdriverFilters(target),
Aggregation: aggregation,
Alignment: alignment,
GroupBy: target.GroupBy,
GroupBy: target.GroupBys,
Legend: target.AliasBy,
Ref: target.RefID,
Hidden: target.Hide,
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/converter/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

grabana "github.com/K-Phoen/grabana/decoder"
"github.com/grafana-tools/sdk"
"github.com/K-Phoen/sdk"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)
Expand Down Expand Up @@ -454,7 +454,7 @@ func TestConvertTargetWithStackdriverTarget(t *testing.T) {
CrossSeriesReducer: "REDUCE_MEAN",
PerSeriesAligner: "ALIGN_DELTA",
AlignmentPeriod: "stackdriver-auto",
GroupBy: []string{"field"},
GroupBys: []string{"field"},
AliasBy: "legend",
RefID: "A",
Filters: []string{
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/alert/alert.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/alert/condition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/axis/axis.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/dashboard/dashboard.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/dashboard/link.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/decoder/target.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/graph/graph.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/graph/series/override.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/heatmap/heatmap.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/row/row.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/singlestat/singlestat.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/table/table.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/text/text.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/K-Phoen/grabana/variable/query/query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 576edbc

Please sign in to comment.