You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-12 14:02:47 +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
|
## Building and running
|
||||||
The default make file behavior is to build the binary:
|
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
|
make
|
||||||
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
|
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
|
||||||
./postgres_exporter <flags>
|
./postgres_exporter <flags>
|
||||||
|
Reference in New Issue
Block a user