# prometheus-community/postgres_exporter

A PostgreSQL metric exporter for Prometheus

Repository: https://github.com/prometheus-community/postgres_exporter
Canonical: https://ross.abutalabs.com/products/postgres_exporter
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T02:38:07+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 80, longevity 100
- inputs: {"age_days": 4027, "days_push": 8, "days_rel": 57, "gap_med": 61.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3601, forks 834 (observed 2026-08-28T04:08:11.428953+00:00)

## What it is
A Prometheus exporter that collects and exposes PostgreSQL server metrics over HTTP for scraping. It supports PostgreSQL 13-18, Docker deployment, and a beta multi-target probe mode for monitoring many databases from one instance.

## Use cases
- monitor postgresql database metrics with prometheus
- export postgres stats to prometheus
- monitor multiple postgres servers from one exporter
- scrape postgresql health and performance metrics
- set up database monitoring for postgres in docker
- track postgres query and replication metrics

## When to choose
- you run PostgreSQL and use Prometheus for monitoring
- you need a battle-tested, community-maintained postgres metrics exporter
- you want to monitor managed/SaaS postgres instances via multi-target probing

## When to avoid
- you use a different database than PostgreSQL
- you use a metrics system other than Prometheus without conversion
- you need deep APM-style query tracing rather than server metrics

## Facets
- artifact type: service
- maturity: active
- function: monitoring, http-server
- domain: databases, monitoring
- platform: go, self-hosted, cross-platform
- tags: prometheus, postgresql, exporter, metrics, database-monitoring, metrics-exporter, devops, linux, docker

## Member repositories
- prometheus-community/postgres_exporter (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.428953+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:33:45.206567+00:00, confidence not recorded.
  - readme: https://github.com/prometheus-community/postgres_exporter (fetched 2026-08-28T04:08:11.428953+00:00, sha a050d5aed439)
- Data as of 2026-08-30T08:39:29.467469+00:00.
