Skip to content

Commit f8cc446

Browse files
committedApr 5, 2025
Deprecated options removed from the README
Signed-off-by: scottishwidow <mike.voznyanskix@gmail.com>
1 parent f8b7139 commit f8cc446

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎README-RDS.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
### When using postgres-exporter with Amazon Web Services' RDS, the
44
rolname "rdsadmin" and datname "rdsadmin" must be excluded.
55

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-
126
Running postgres-exporter in a container like so:
137
```
148
DBNAME='postgres'
@@ -18,12 +12,10 @@ Running postgres-exporter in a container like so:
1812
docker run --rm --detach \
1913
--name "postgresql_exporter_rds" \
2014
--publish 9187:9187 \
21-
--volume=/etc/prometheus/postgresql-exporter/queries.yaml:/var/lib/postgresql/queries.yaml \
2215
-e DATA_SOURCE_NAME="postgresql://${PGUSER}:${PGPASS}@${PGHOST}:5432/${DBNAME}?sslmode=disable" \
2316
-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 \
2719
quay.io/prometheuscommunity/postgres-exporter
2820
```
2921

0 commit comments

Comments
 (0)