File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 20
20
/.metrics. * .removed
21
21
/tools /src
22
22
/vendor
23
+ .env
Original file line number Diff line number Diff line change
1
+ version : " 3.5"
2
+
3
+ services :
4
+ postgres_exporter :
5
+ build :
6
+ context : .
7
+ dockerfile : Dockerfile
8
+ image : quay.io/prometheuscommunity/postgres-exporter
9
+ network_mode : host
10
+ environment :
11
+ DATA_SOURCE_NAME : " postgresql://${PG_USERNAME:-postgres}:${PG_PASSWORD:-password}@${PG_HOST:-localhost}:${PG_PORT:-5432}/${DB_NAME:-postgres}?sslmode=disable"
12
+ PG_EXPORTER_WEB_LISTEN_ADDRESS : " :9187"
Original file line number Diff line number Diff line change
1
+ # The database for which the Prometheus metrics must be exported
2
+ PG_USERNAME=postgres
3
+ PG_PASSWORD=password
4
+ PG_HOST=localhost
5
+ PG_PORT=5432
6
+ DB_NAME=postgres
You can’t perform that action at this time.
0 commit comments