@@ -19,24 +19,26 @@ docker run -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?s
19
19
## Building and running
20
20
The default make file behavior is to build the binary:
21
21
```
22
+ go get github.com/wrouesnel/postgres_exporter
23
+ cd ${GOPATH-$HOME/go}/src/github.com/wrouesnel/postgres_exporter
22
24
make
23
25
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
24
26
./postgres_exporter <flags>
25
27
```
26
28
27
- To build the dockerfile, run ` make docker ` .
29
+ To build the dockerfile, run ` make docker ` .
28
30
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
32
34
` /etc/ssl/certs/ca-certificates.crt ` or derive a new image containing them.
33
35
34
36
### Vendoring
35
37
Package vendoring is handled with [ ` govendor ` ] ( https://github.com/kardianos/govendor )
36
38
37
39
### Flags
38
40
39
- * ` web.listen-address `
41
+ * ` web.listen-address `
40
42
Address to listen on for web interface and telemetry.
41
43
42
44
* ` web.telemetry-path `
@@ -112,7 +114,7 @@ CREATE SCHEMA postgres_exporter AUTHORIZATION postgres_exporter;
112
114
CREATE VIEW postgres_exporter .pg_stat_activity
113
115
AS
114
116
SELECT * from pg_catalog .pg_stat_activity ;
115
-
117
+
116
118
GRANT SELECT ON postgres_exporter .pg_stat_activity TO postgres_exporter;
117
119
118
120
CREATE VIEW postgres_exporter .pg_stat_replication AS
0 commit comments