Skip to content

Commit

Permalink
Merge pull request #21 from K-Phoen/hidden-targets
Browse files Browse the repository at this point in the history
Hidden targets
  • Loading branch information
K-Phoen authored Jun 10, 2020
2 parents 32f0e26 + c8fb80c commit 8b36d8c
Show file tree
Hide file tree
Showing 13 changed files with 156 additions and 19 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module github.com/K-Phoen/dark
go 1.13

require (
github.com/K-Phoen/grabana v0.11.1
github.com/K-Phoen/grabana v0.11.3
github.com/caarlos0/env v3.5.0+incompatible
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/grafana-tools/sdk v0.0.0-20200424161218-784ae0c7d6cc
github.com/grafana-tools/sdk v0.0.0-20200610203821-a982d46f0598
github.com/leodido/go-urn v1.2.0 // indirect
github.com/stretchr/testify v1.4.0
go.uber.org/zap v1.14.1
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/K-Phoen/grabana v0.11.1 h1:z8ZcNNSgo8svhSC+vmumg026O1O0T1zRAIQNF3oOaXQ=
github.com/K-Phoen/grabana v0.11.1/go.mod h1:d6laJN347jVc/UvHXP94IIh+IInrzD46JsxbsF64oU4=
github.com/K-Phoen/grabana v0.11.3 h1:dA9SWquYYbJJUqi0659vD9iT6nDnR2/9ahQCMVr6U7I=
github.com/K-Phoen/grabana v0.11.3/go.mod h1:jeqCvdDxKfL5BEm91DCZttD4LWHtFnC282OMtwptiJk=
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 @@ -97,6 +99,8 @@ github.com/grafana-tools/sdk v0.0.0-20200421141239-edb3b044281c h1:T1ckSwJLGPeKL
github.com/grafana-tools/sdk v0.0.0-20200421141239-edb3b044281c/go.mod h1:aqBqJVTJmj0MTX9cP8wuReJPte6HyttMDzSS2u8nJwo=
github.com/grafana-tools/sdk v0.0.0-20200424161218-784ae0c7d6cc h1:vbciiLT0YD3wsBITfwdQF/UNVYjMxD5xh0kJQesrypk=
github.com/grafana-tools/sdk v0.0.0-20200424161218-784ae0c7d6cc/go.mod h1:aqBqJVTJmj0MTX9cP8wuReJPte6HyttMDzSS2u8nJwo=
github.com/grafana-tools/sdk v0.0.0-20200610203821-a982d46f0598 h1:PqTSd+sSXH9WkMMCXW41J061pAwLBgPbvW7/2inMjCc=
github.com/grafana-tools/sdk v0.0.0-20200610203821-a982d46f0598/go.mod h1:aqBqJVTJmj0MTX9cP8wuReJPte6HyttMDzSS2u8nJwo=
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=
Expand Down
2 changes: 2 additions & 0 deletions internal/pkg/converter/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ func (converter *JSON) convertPrometheusTarget(target sdk.Target) *grabana.Targe
Query: target.Expr,
Legend: target.LegendFormat,
Ref: target.RefID,
Hidden: target.Hide,
},
}
}
Expand Down Expand Up @@ -526,6 +527,7 @@ func (converter *JSON) convertStackdriverTarget(target sdk.Target) *grabana.Targ
Alignment: alignment,
Legend: target.AliasBy,
Ref: target.RefID,
Hidden: target.Hide,
},
}
}
Expand Down
1 change: 0 additions & 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.

14 changes: 13 additions & 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/go.mod

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

4 changes: 2 additions & 2 deletions vendor/github.com/K-Phoen/grabana/go.sum

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

3 changes: 2 additions & 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.

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.

3 changes: 2 additions & 1 deletion vendor/github.com/grafana-tools/sdk/panel.go

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

117 changes: 109 additions & 8 deletions vendor/github.com/grafana-tools/sdk/rest-dashboard.go

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

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cloud.google.com/go v0.38.0
cloud.google.com/go/compute/metadata
# github.com/K-Phoen/grabana v0.11.1
# github.com/K-Phoen/grabana v0.11.3
github.com/K-Phoen/grabana
github.com/K-Phoen/grabana/alert
github.com/K-Phoen/grabana/axis
Expand Down Expand Up @@ -68,7 +68,7 @@ github.com/googleapis/gnostic/compiler
github.com/googleapis/gnostic/extensions
# github.com/gosimple/slug v1.9.0
github.com/gosimple/slug
# github.com/grafana-tools/sdk v0.0.0-20200424161218-784ae0c7d6cc
# github.com/grafana-tools/sdk v0.0.0-20200610203821-a982d46f0598
github.com/grafana-tools/sdk
# github.com/hashicorp/golang-lru v0.5.1
github.com/hashicorp/golang-lru
Expand Down

0 comments on commit 8b36d8c

Please sign in to comment.