Improve build from source instructions

Closes #141
This commit is contained in:
Cameron Sparr 2015-08-25 18:16:01 -06:00
parent ab4344a781
commit 846fd31121
1 changed files with 8 additions and 3 deletions

View File

@ -46,9 +46,14 @@ brew install telegraf
### From Source:
Telegraf manages dependencies via `godep`, which gets installed via the Makefile.
Assuming you have your GOPATH setup, `make build` should be enough to gather dependencies
and build telegraf.
Telegraf manages dependencies via `godep`, which gets installed via the Makefile
if you don't have it already. You also must build with golang version 1.4+
1. [Install Go](https://golang.org/doc/install)
2. [Setup your GOPATH](https://golang.org/doc/code.html#GOPATH)
3. run `go get github.com/influxdb/telegraf`
4. `cd $GOPATH/src/github.com/influxdb/telegraf`
5. run `make`
### How to use it: