You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-11 02:43:02 +03:00
Add a couple of pre-instructions to the README file for the build process. (#152)
This commit is contained in:
@@ -19,6 +19,8 @@ docker run -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?s
|
||||
## Building and running
|
||||
The default make file behavior is to build the binary:
|
||||
```
|
||||
go get github.com/wrouesnel/postgres_exporter
|
||||
cd ${GOPATH-$HOME/go}/src/github.com/wrouesnel/postgres_exporter
|
||||
make
|
||||
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
|
||||
./postgres_exporter <flags>
|
||||
|
Reference in New Issue
Block a user