Skip to content

Commit

Permalink
Merge branch 'main' into fix_adhoc_filters
Browse files Browse the repository at this point in the history
  • Loading branch information
bossinc authored Jan 24, 2024
2 parents 3e84990 + f595a3c commit 2e33ed8
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 61 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,17 @@ datasources:
server: localhost
username: username
tlsSkipVerify: false
# tlsAuth: <bool>
# tlsAuthWithCACert: <bool>
# secure: <bool>
# timeout: <seconds>
# queryTimeout: <seconds>
# protocol: <native|http>
secureJsonData:
password: password
# tlsCACert: <string>
# tlsClientCert: <string>
# tlsClientKey: <string>
```

## Building queries
Expand Down
4 changes: 2 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func startGrafana(client *dagger.Client, clickHouseDist *dagger.Directory, click
From("grafana/grafana:main").
WithFile("/etc/grafana/grafana.ini", client.Host().File("e2e/custom.ini")).
WithMountedDirectory("/var/lib/grafana/plugins/clickhouse-datasource", clickHouseDist).
WithServiceBinding("clickhouse", clickhouseContainer).
WithServiceBinding("clickhouse", clickhouseContainer.AsService()).
WithExposedPort(3000)

fmt.Println("Grafana built")
Expand All @@ -183,7 +183,7 @@ func runK6(client *dagger.Client, ctx context.Context, grafanaContainer *dagger.
value, err := client.
Container().
From("grafana/k6:master-with-browser").
WithServiceBinding("grafana", grafanaContainer).
WithServiceBinding("grafana", grafanaContainer.AsService()).
WithEnvVariable("K6_BROWSER_ARGS", "no-sandbox").
WithFile("k6.test.js", testFile).
WithExec([]string{"run", "k6.test.js"}, dagger.ContainerWithExecOpts{InsecureRootCapabilities: true}).Stderr(ctx)
Expand Down
37 changes: 18 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ go 1.21
toolchain go1.21.4

require (
dagger.io/dagger v0.8.4
dagger.io/dagger v0.9.6
github.com/ClickHouse/clickhouse-go/v2 v2.17.1
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-units v0.5.0
github.com/grafana/grafana-plugin-sdk-go v0.195.0
github.com/grafana/grafana-plugin-sdk-go v0.199.0
github.com/grafana/sqlds/v2 v2.7.2
github.com/paulmach/orb v0.10.0
github.com/paulmach/orb v0.11.0
github.com/pkg/errors v0.9.1
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.27.0
golang.org/x/net v0.19.0
golang.org/x/net v0.20.0
)

require (
Expand All @@ -26,14 +26,13 @@ require (
github.com/apache/arrow/go/v13 v13.0.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/goccy/go-json v0.10.0 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
github.com/vektah/gqlparser/v2 v2.5.6 // indirect
github.com/zeebo/xxh3 v1.0.2 // indirect
go.opentelemetry.io/contrib/samplers/jaegerremote v0.15.1 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sync v0.4.0 // indirect
google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 // indirect
)

Expand All @@ -58,7 +57,7 @@ require (
github.com/docker/go-connections v0.4.0 // indirect
github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/getkin/kin-openapi v0.122.0 // indirect
github.com/getkin/kin-openapi v0.120.0 // indirect
github.com/go-faster/city v1.0.1 // indirect
github.com/go-faster/errors v0.6.1 // indirect
github.com/go-logr/logr v1.3.0 // indirect
Expand All @@ -75,7 +74,7 @@ require (
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.6.2 // indirect
github.com/hashicorp/go-plugin v1.6.0 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/invopop/yaml v0.2.0 // indirect
Expand Down Expand Up @@ -113,10 +112,10 @@ require (
github.com/pierrec/lz4/v4 v4.1.18 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/prometheus/client_golang v1.17.0 // indirect
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.45.0 // indirect
github.com/prometheus/procfs v0.11.1 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/shirou/gopsutil/v3 v3.23.11 // indirect
Expand All @@ -142,18 +141,18 @@ require (
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.21.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect
golang.org/x/tools v0.14.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/grpc v1.60.1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 2e33ed8

Please sign in to comment.