Skip to content

Instantly share code, notes, and snippets.

@widgetpl
Created February 8, 2017 18:48
Compiling remote_storage_bridge issue
root@c1ad2f3f2a73:/usr/src/myapp# go build -v
_/usr/src/myapp
# _/usr/src/myapp
./myapp.go:164: cannot use conf (type "github.com/influxdata/influxdb/client".Config) as type "github.com/prometheus/prometheus/vendor/github.com/influxdb/influxdb/client".Config in argument to influxdb.NewClient
./myapp.go:165: cannot use c (type *influxdb.Client) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".MustRegister:
*influxdb.Client does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/prometheus/prometheus/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)
./myapp.go:223: cannot use samples (type "github.com/prometheus/common/model".Samples) as type "github.com/prometheus/prometheus/vendor/github.com/prometheus/common/model".Samples in argument to c.Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment