influxdb-collectd-proxy icon indicating copy to clipboard operation
influxdb-collectd-proxy copied to clipboard

Make does not work with influxdb v0.8.8

Open joelgriffiths opened this issue 10 years ago • 10 comments

I was able to get it built a few days ago, but am unable to build it now no matter what I do. Does anybody have any ideas? root@influxdb-02:~/influxdb-collectd-proxy/influxdb-collectd-proxy# GOPATH=:pwd go version 'go version go1.4.1 linux/amd64 root@influxdb-02:~/influxdb-collectd-proxy/influxdb-collectd-proxy# make GOPATH=:pwd go get github.com/paulhammond/gocollectd GOPATH=:pwd go get github.com/influxdb/influxdb/client GOPATH=:pwd go build -o bin/influxdb-collectd-proxy

_/root/influxdb-collectd-proxy/influxdb-collectd-proxy

./influxdb-collectd-proxy.go:107: undefined: client.ClientConfig ./influxdb-collectd-proxy.go:129: undefined: client.Series ./influxdb-collectd-proxy.go:138: client.WriteSeries undefined (type client.Client has no field or method WriteSeries) ./influxdb-collectd-proxy.go:144: undefined: client.Series ./influxdb-collectd-proxy.go:151: undefined: client.Series ./influxdb-collectd-proxy.go:156: undefined: client.Series ./influxdb-collectd-proxy.go:246: undefined: client.Series make: ** [build] Error 2

joelgriffiths avatar Feb 03 '15 23:02 joelgriffiths

Also experiencing this issue, any work around?

dblooman avatar Feb 04 '15 15:02 dblooman

I believe influxdb/client has changed. They removed WriteSeries. I'm trying to find a release that isn't broken. If you find one, post it here so others can benefit.

joelgriffiths avatar Feb 04 '15 18:02 joelgriffiths

Can we use godeps and lock down the commit hash of the upstream project?

yanfali avatar Feb 04 '15 18:02 yanfali

Actually, after it fails, or you do a 'make get'

Do this: cd src/github.com/influxdb/influxdb git checkout v0.8.7

make build

Then you're g2g.

joelgriffiths avatar Feb 04 '15 18:02 joelgriffiths

OK, pull request #26 may help with this. Let's see what @hoonmin thinks is the best solution.

yanfali avatar Feb 04 '15 22:02 yanfali

Anyone got a fix for this? Trying to setup this proxy but am getting this error.

aranw avatar Feb 11 '15 15:02 aranw

Oh, sorry I'm late... I think Godep is the answer and @yanfali 's PR #26 looks good for me. Thank you all!

hoonmin avatar Feb 12 '15 03:02 hoonmin

@hoonmin should you close this now?

yanfali avatar Mar 01 '15 02:03 yanfali

@joelgriffiths thank you so much, you saved my time!

ndinhphi avatar Mar 26 '15 10:03 ndinhphi

Hello Any support planned for the influxdb client v0.9.x ? I had to upgrade to influx database server 0.9 and cannot use the proxy anymore... When doing a 'go build' with influxdb client last version having the same compilation error as mentioned above.

./influxdb-collectd-proxy.go:107: undefined: client.ClientConfig ./influxdb-collectd-proxy.go:129: undefined: client.Series ./influxdb-collectd-proxy.go:138: client.WriteSeries undefined (type client.Client has no field or method WriteSeries) ./influxdb-collectd-proxy.go:144: undefined: client.Series ./influxdb-collectd-proxy.go:151: undefined: client.Series ./influxdb-collectd-proxy.go:156: undefined: client.Series ./influxdb-collectd-proxy.go:246: undefined: client.Series

Thanks for the help

MengchenTony avatar Jul 21 '15 16:07 MengchenTony