Add prompb/README (#4222)

Signed-off-by: Henri DF <henridf@gmail.com>
This commit is contained in:
Henri DF 2018-06-11 14:00:33 -07:00 committed by Brian Brazil
parent 45b8dea320
commit a3ddde0800
1 changed files with 14 additions and 0 deletions

14
prompb/README.md Normal file
View File

@ -0,0 +1,14 @@
The compiled protobufs are version controlled and you won't normally need to
re-compile them when building Prometheus.
If however you have modified the defs and do need to re-compile, run
`./scripts/genproto.sh` from the parent dir.
In order for the script to run, you'll need `protoc` (version 3.5) in your
PATH, and the following Go packages installed:
- github.com/gogo/protobuf
- github.com/gogo/protobuf/protoc-gen-gogofast
- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/
- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
- golang.org/x/tools/cmd/goimports