Skip to content

Commit

Permalink
Fix and improve build-from-source instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusv authored and fabxc committed Oct 16, 2015
1 parent 0bf0d09 commit 2dc0f76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ To build Prometheus from the source code yourself you need to have a working
Go environment with [version 1.5 or greater installed](http://golang.org/doc/install).

You can directly use the `go` tool to download and install the `prometheus`
and `promtool` binaries into your `GOPATH`:
and `promtool` binaries into your `GOPATH`. We use Go 1.5's experimental
vendoring feature, so you will also need to set the `GO15VENDOREXPERIMENT=1`
environment variable in this case:

$ go get github.com/prometheus/prometheus/...
$ GO15VENDOREXPERIMENT=1 go get github.com/prometheus/prometheus/cmd/...
$ prometheus -config.file=your_config.yml

You can also clone the repository yourself and build using `make`:
Expand Down

0 comments on commit 2dc0f76

Please sign in to comment.