Skip to content

Commit 02718d0

Browse files
fjaviermwrouesnel
authored andcommitted
Add a couple of pre-instructions to the README file for the build process. (prometheus-community#152)
1 parent b0d5700 commit 02718d0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,26 @@ docker run -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?s
1919
## Building and running
2020
The default make file behavior is to build the binary:
2121
```
22+
go get github.com/wrouesnel/postgres_exporter
23+
cd ${GOPATH-$HOME/go}/src/github.com/wrouesnel/postgres_exporter
2224
make
2325
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
2426
./postgres_exporter <flags>
2527
```
2628

27-
To build the dockerfile, run `make docker`.
29+
To build the dockerfile, run `make docker`.
2830

29-
This will build the docker image as `wrouesnel/postgres_exporter:latest`. This
30-
is a minimal docker image containing *just* postgres_exporter. By default no SSL
31-
certificates are included, if you need to use SSL you should either bind-mount
31+
This will build the docker image as `wrouesnel/postgres_exporter:latest`. This
32+
is a minimal docker image containing *just* postgres_exporter. By default no SSL
33+
certificates are included, if you need to use SSL you should either bind-mount
3234
`/etc/ssl/certs/ca-certificates.crt` or derive a new image containing them.
3335

3436
### Vendoring
3537
Package vendoring is handled with [`govendor`](https://github.com/kardianos/govendor)
3638

3739
### Flags
3840

39-
* `web.listen-address`
41+
* `web.listen-address`
4042
Address to listen on for web interface and telemetry.
4143

4244
* `web.telemetry-path`
@@ -112,7 +114,7 @@ CREATE SCHEMA postgres_exporter AUTHORIZATION postgres_exporter;
112114
CREATE VIEW postgres_exporter.pg_stat_activity
113115
AS
114116
SELECT * from pg_catalog.pg_stat_activity;
115-
117+
116118
GRANT SELECT ON postgres_exporter.pg_stat_activity TO postgres_exporter;
117119

118120
CREATE VIEW postgres_exporter.pg_stat_replication AS

0 commit comments

Comments
 (0)