{"id":25267351,"url":"https://github.com/1and1/pg-exporter","last_synced_at":"2025-10-27T05:31:23.027Z","repository":{"id":37418801,"uuid":"300572763","full_name":"1and1/pg-exporter","owner":"1and1","description":"Improved prometheus exporter for PostgreSQL","archived":false,"fork":false,"pushed_at":"2025-02-10T17:00:08.000Z","size":4220,"stargazers_count":6,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-10T17:38:02.661Z","etag":null,"topics":["go","golang","hacktoberfest2020","postgresql","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1and1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-02T10:00:01.000Z","updated_at":"2025-01-30T14:03:46.000Z","dependencies_parsed_at":"2024-06-19T05:31:38.589Z","dependency_job_id":"defe3bff-1e37-4dee-875e-5368a32bc1be","html_url":"https://github.com/1and1/pg-exporter","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":"0.43999999999999995","last_synced_commit":"b4f0ae47af9b0eda97defd5e70b0eb379a785c2f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fpg-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fpg-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fpg-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fpg-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1and1","download_url":"https://codeload.github.com/1and1/pg-exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238444841,"owners_count":19473600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","golang","hacktoberfest2020","postgresql","prometheus","prometheus-exporter"],"created_at":"2025-02-12T09:26:53.515Z","updated_at":"2025-10-27T05:31:23.021Z","avatar_url":"https://github.com/1and1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Server Exporter\n\nPrometheus exporter for PostgreSQL server metrics.\n\nSupported version:\n- PostgreSQL \u003e= 9.6\n\n## Project state\n\nThis project is in early beta. There is missing documentation,\nthings may still change and the default scrapers are not final, and could change\nat any time.\n\n\n## Building and running\n\n### Build\n```shell\nmake\n```\n\n### Running\n\n```shell\nexport PGHOST=\"\u003chost\u003e\"\nexport PGUSER=\"\u003cuser\u003e\"\n# ....\n./bin/pg_exporter \u003cflags\u003e\n```\n\n#### Connection URL\n\n`pg_exporter` supports `libpq` parsable connection strings and environments variables. If you want\nto use a connection string, it could be provided via the `DATA_SOURCE_NAME` variable\n\n### Collector Flags\n\n|                 Name                       | PostgreSQL version  |                 Description                    |\n|--------------------------------------------|---------------------|------------------------------------------------|\n| collect.include.database                   | all                 | Database to include in the collection. If defined only the given databases are scraped. Can be defined multiple times |\n| collect.exclude.database                   | all                 | Database to exclude from the collection. Only used if collect.include.database is not given. Can be defined multiple times |\n| collect.info                               | all                 | Collect postgresql information                 |\n| collect.pg_stat_activity                   | all                 | Collect from pg_stat_activity                  |\n| collect.pg_stat_activity.with_username     | all                 | Include username in session statistics         |\n| collect.pg_stat_activity.with_appname      | all                 | Include application name in session statistics |\n| collect.pg_stat_activity.with_clientaddr   | all                 | Include application name in session statistics |\n| collect.pg_stat_activity.with_state        | all                 | Include session state in session statistics    |\n| collect.pg_stat_activity.with_wait_type    | all                 | Include wait_event_type in session statistics  |\n| collect.pg_stat_activity.with_backend_type | \u003e= 11               | Include backend_type in session statistics     |\n| collect.pg_stat_user_tables                | all                 | Collect from pg_stat_user_tables               |\n| collect.pg_settings                        | all                 | Collect from pg_settings                       |\n| collect.pg_locks                           | all                 | Collect from pg_locks                          |\n| collect.pg_stat_bgwriter                   | all                 | Collect from pg_stat_bgwriter                  |\n| collect.pg_stat_database                   | all                 | Collect from pg_stat_database                  |\n| collect.pg_stat_database_conflicts         | all                 | Collect from pg_stat_database_conflicts        |\n| collect.pg_stat_archiver                   | all                 | Collect from pg_stat_statements                |\n| collect.pg_stat_statements                 | all                 | Collect from pg_stat_archiver                  |\n| collect.pg_stat_replication                | all                 | Collect from pg_stat_replication               |\n| collect.pg_prepared_xacts                  | all                 | Collect from pg_prepared_xacts                 |\n| collect.pg_statio_user_tables              | all                 | Collect from pg_statio_user_tables             |\n| collect.pg_stat_checkpointer               | \u003e= 17               | Collect from pg_stat_checkpointer              |\n\n\n### General Flags\n\n| Name                | Description                                                              |\n|---------------------|--------------------------------------------------------------------------|\n| log.level           | Logging verbosity (default: info)                                        |\n| web.listen-address  | Address to listen on for web interface and telemetry. (default: `:9135`) |\n| web.telemetry-path  | Path under which to expose metrics. (default: `/metrics`)                |\n| version             | Print the version information.                                           |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1and1%2Fpg-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1and1%2Fpg-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1and1%2Fpg-exporter/lists"}