File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 3
3
### When using postgres-exporter with Amazon Web Services' RDS, the
4
4
rolname "rdsadmin" and datname "rdsadmin" must be excluded.
5
5
6
- I had success running docker container 'quay.io/prometheuscommunity/postgres-exporter: latest '
7
- with queries.yaml as the PG_EXPORTER_EXTEND_QUERY_PATH. errors
8
- mentioned in issue #335 appeared and I had to modify the
9
- 'pg_stat_statements' query with the following:
10
- ` WHERE t2.rolname != 'rdsadmin' `
11
-
12
6
Running postgres-exporter in a container like so:
13
7
```
14
8
DBNAME='postgres'
@@ -18,12 +12,10 @@ Running postgres-exporter in a container like so:
18
12
docker run --rm --detach \
19
13
--name "postgresql_exporter_rds" \
20
14
--publish 9187:9187 \
21
- --volume=/etc/prometheus/postgresql-exporter/queries.yaml:/var/lib/postgresql/queries.yaml \
22
15
-e DATA_SOURCE_NAME="postgresql://${PGUSER}:${PGPASS}@${PGHOST}:5432/${DBNAME}?sslmode=disable" \
23
16
-e PG_EXPORTER_EXCLUDE_DATABASES=rdsadmin \
24
- -e PG_EXPORTER_DISABLE_DEFAULT_METRICS=true \
25
- -e PG_EXPORTER_DISABLE_SETTINGS_METRICS=true \
26
- -e PG_EXPORTER_EXTEND_QUERY_PATH='/var/lib/postgresql/queries.yaml' \
17
+ -e PG_EXPORTER_DISABLE_DEFAULT_METRICS=false \
18
+ -e PG_EXPORTER_DISABLE_SETTINGS_METRICS=false \
27
19
quay.io/prometheuscommunity/postgres-exporter
28
20
```
29
21
You can’t perform that action at this time.
0 commit comments