{"id":37117095,"url":"https://github.com/sysdiglabs/postgres_exporter","last_synced_at":"2026-01-14T13:42:42.598Z","repository":{"id":37789587,"uuid":"362127400","full_name":"sysdiglabs/postgres_exporter","owner":"sysdiglabs","description":"A PostgreSQL metric exporter for Prometheus","archived":false,"fork":true,"pushed_at":"2025-12-19T21:01:55.000Z","size":7332,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"build","last_synced_at":"2025-12-24T18:03:39.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"prometheus-community/postgres_exporter","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysdiglabs.png","metadata":{"files":{"readme":"README-RDS.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-04-27T13:44:11.000Z","updated_at":"2025-12-03T13:37:45.000Z","dependencies_parsed_at":"2023-02-10T10:15:58.493Z","dependency_job_id":null,"html_url":"https://github.com/sysdiglabs/postgres_exporter","commit_stats":null,"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"purl":"pkg:github/sysdiglabs/postgres_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fpostgres_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fpostgres_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fpostgres_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fpostgres_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysdiglabs","download_url":"https://codeload.github.com/sysdiglabs/postgres_exporter/tar.gz/refs/heads/build","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fpostgres_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T13:42:41.811Z","updated_at":"2026-01-14T13:42:42.580Z","avatar_url":"https://github.com/sysdiglabs.png","language":"Go","readme":"# Using Postgres-Exporter with AWS:RDS\n\n### When using postgres-exporter with Amazon Web Services' RDS, the\n  rolname \"rdsadmin\" and datname \"rdsadmin\" must be excluded.\n\nI had success running docker container 'quay.io/prometheuscommunity/postgres-exporter:latest'\nwith queries.yaml as the PG_EXPORTER_EXTEND_QUERY_PATH.  errors\nmentioned in issue#335 appeared and I had to modify the\n'pg_stat_statements' query with the following:\n`WHERE t2.rolname != 'rdsadmin'`\n\nRunning postgres-exporter in a container like so:\n  ```\n  DBNAME='postgres'\n  PGUSER='postgres'\n  PGPASS='psqlpasswd123'\n  PGHOST='name.blahblah.us-east-1.rds.amazonaws.com'\n  docker run --rm --detach \\\n      --name \"postgresql_exporter_rds\" \\\n      --publish 9187:9187 \\\n      --volume=/etc/prometheus/postgresql-exporter/queries.yaml:/var/lib/postgresql/queries.yaml \\\n      -e DATA_SOURCE_NAME=\"postgresql://${PGUSER}:${PGPASS}@${PGHOST}:5432/${DBNAME}?sslmode=disable\" \\\n      -e PG_EXPORTER_EXCLUDE_DATABASES=rdsadmin \\\n      -e PG_EXPORTER_DISABLE_DEFAULT_METRICS=true \\\n      -e PG_EXPORTER_DISABLE_SETTINGS_METRICS=true \\\n      -e PG_EXPORTER_EXTEND_QUERY_PATH='/var/lib/postgresql/queries.yaml' \\\n      quay.io/prometheuscommunity/postgres-exporter\n  ```\n\n### Expected changes to RDS:\n+ see stackoverflow notes\n  (https://stackoverflow.com/questions/43926499/amazon-postgres-rds-pg-stat-statements-not-loaded#43931885)\n+ you must also use a specific RDS parameter_group that includes the following:\n  ```\n  shared_preload_libraries = \"pg_stat_statements,pg_hint_plan\"\n  ```\n+ lastly, you must reboot the RDS instance.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fpostgres_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysdiglabs%2Fpostgres_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fpostgres_exporter/lists"}