Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.1 KB

README-RDS.md

File metadata and controls

30 lines (26 loc) · 1.1 KB

Using Postgres-Exporter with AWS:RDS

When using postgres-exporter with Amazon Web Services' RDS, the

rolname "rdsadmin" and datname "rdsadmin" must be excluded.

Running postgres-exporter in a container like so:

DBNAME='postgres'
PGUSER='postgres'
PGPASS='psqlpasswd123'
PGHOST='name.blahblah.us-east-1.rds.amazonaws.com'
docker run --rm --detach \
    --name "postgresql_exporter_rds" \
    --publish 9187:9187 \
    -e DATA_SOURCE_NAME="postgresql://${PGUSER}:${PGPASS}@${PGHOST}:5432/${DBNAME}?sslmode=disable" \
    -e PG_EXPORTER_EXCLUDE_DATABASES=rdsadmin \
    -e PG_EXPORTER_DISABLE_DEFAULT_METRICS=false \
    -e PG_EXPORTER_DISABLE_SETTINGS_METRICS=false \
    quay.io/prometheuscommunity/postgres-exporter

Expected changes to RDS: