You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./clickhouse_exporter.go:32:25: cannot use e (type *exporter.Exporter) as type "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Collector in argument to "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".MustRegister:
*exporter.Exporter does not implement "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/f1yegor/clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
`
Am i doing something wrong here
The text was updated successfully, but these errors were encountered:
You should set GOROOT and GOPATH look at this, for example.
Then just type go get github.com/f1yegor/clickhouse_exporter/exporter
and cd ~/go/src/github.com/f1yegor/clickhouse_exporter
After that use Makefile: make init && make build - that's all you need :)
i ran a git clone https://github.com/f1yegor/clickhouse_exporter and then ran go get which gave me the following error:
`
go get
clickhouse_exporter
./clickhouse_exporter.go:32:25: cannot use e (type *exporter.Exporter) as type "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Collector in argument to "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".MustRegister:
*exporter.Exporter does not implement "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/f1yegor/clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "clickhouse_exporter/vendor/github.com/prometheus/client_golang/prometheus".Metric)
`
Am i doing something wrong here
The text was updated successfully, but these errors were encountered: