installing collectd_exporter - failed for the last few days

216 views
Skip to first unread message

Tzach Livyatan

unread,
May 22, 2016, 7:13:33 AM5/22/16
to Prometheus Developers

Hello all

I have a script which install collectd_exporter as follow (on CentOS 7.2)

git clone https://github.com/prometheus/collectd_exporter
cd collectd_exporter
make


Since a change, I believe in the last few days, I get the following:

$ make
>> formatting code
can't load package: package _/home/centos/collectd_exporter: cannot find package "_/home/centos/collectd_exporter" in any of:
        /usr/lib/golang/src/_/home/centos/collectd_exporter (from $GOROOT)
        ($GOPATH not set)
make: *** [format] Error 1

I opened an issue #1280 with this subject.


To bypass, I run collectd_exporter  as a docker container. It successfully exports internal metrics to HTTP (port 9103), but I failed to forward collectd metric to it. 

Maybe I should use docker networking, but running the native version without Docker is a better option for me.


Advice will be appreciated. Can I just download the compiled, binary, collectd_exporter?


Thanks

Tzach


Matthias Rampke

unread,
May 23, 2016, 2:29:16 PM5/23/16
to Tzach Livyatan, Prometheus Developers
The build process recently changed. It seems like it now expects a working GOPATH environment to build, which you seem to be missing.

Using the compiled binary is certainly more stable and should work. It is a big behind master though… time for a release I guess.

You can build from source in a properly set up dev environment, `make tarball` produces a nice distributable for you, but you'll need a working Go setup. See https://golang.org/doc/install for details on that.

/MR

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matthias Rampke
Engineer

SoundCloud Ltd. | Rheinsberger Str. 76/7710115 Berlin, Germany | +49 173 6395215

Managing Director: Alexander Ljung Incorporated in England & Wales with Company No. 6343600 | Local Branch Office | AG Charlottenburg  | HRB 110657B

Tzach Livyatan

unread,
May 24, 2016, 12:49:55 PM5/24/16
to Matthias Rampke, Prometheus Developers
Thanks Matthias
Since I'm using collectd_exporter on a production, not dev server, it makes more sense to download a binary.
I updated my Ansible script[1] to download the latest binary (0.2.0). It had some problems[2] already fix in the main branch but works fine.

Best Regards
Tzach 


Matthias Rampke

unread,
Jun 6, 2016, 8:26:44 AM6/6/16
to Tzach Livyatan, Prometheus Developers
FYI, we released collectd_exporter version 0.3.1 with the changes that accumulated since 0.2.0, although as I see it the PR you linked was already included in 0.2.0.

Cheers,
MR
Reply all
Reply to author
Forward
0 new messages