PostgreSQL Exporter by SolDevelo, a maintained fork of the Bitnami Exporter image.
3.1K
PostgreSQL Exporter by SolDevelo, a maintained fork of the Bitnami PostgreSQL Exporter image.
PostgreSQL Exporter gathers PostgreSQL metrics for Prometheus consumption.
PostgreSQL Exporter is a metrics exporter that connects to PostgreSQL and exposes database and server metrics over HTTP for Prometheus scraping.
Overview of PostgreSQL Exporter: https://github.com/prometheus-community/postgres_exporter
Trademarks: This Docker image is maintained by SolDevelo and based on Bitnami's PostgreSQL Exporter image. The respective trademarks mentioned are owned by their respective companies, and use of them does not imply any affiliation or endorsement.
docker run --name postgres-exporter \
-e DATA_SOURCE_NAME="postgresql://user:password@host:5432/dbname?sslmode=disable" \
docker.io/soldevelo/postgres-exporter:latest
The recommended way to get the SolDevelo PostgreSQL Exporter Docker image is to pull the prebuilt image from Docker Hub.
docker pull docker.io/soldevelo/postgres-exporter:latest
To use a specific version, pull a versioned tag:
docker pull docker.io/soldevelo/postgres-exporter:[TAG]
If you prefer to build it yourself:
git clone https://github.com/soldevelo/containers.git
cd containers/soldevelo/postgres-exporter/0/debian-12
docker build -t soldevelo/postgres-exporter:latest .
Using Docker container networking, PostgreSQL Exporter can scrape PostgreSQL running in another container on the same network.
docker network create monitoring-network --driver bridge
docker run -d --name postgresql \
--network monitoring-network \
-e POSTGRESQL_PASSWORD=mypassword \
docker.io/soldevelo/postgresql-repmgr:17
docker run -d --name postgres-exporter \
--network monitoring-network \
-p 9187:9187 \
-e DATA_SOURCE_NAME="postgresql://postgres:mypassword@postgresql:5432/postgres?sslmode=disable" \
docker.io/soldevelo/postgres-exporter:latest
Metrics endpoint: http://localhost:9187/metrics
The main folder of each application contains a functional docker-compose.yml file. Run the application using it as shown below:
curl -sSL https://raw.githubusercontent.com/soldevelo/containers/main/soldevelo/postgres-exporter/0/debian-12/docker-compose.yml > docker-compose.yml
docker compose up -d
Find all configuration flags in the official postgres_exporter documentation: https://github.com/prometheus-community/postgres_exporter#flags
The container sends logs to stdout. To view logs:
docker logs postgres-exporter
https://github.com/SolDevelo/containers/tree/main/soldevelo/postgres-exporter
We'd love for you to contribute to those container images. You can request new features by creating an issue, or submit a pull request with your contribution.
Copyright 2026 SolDevelo Based on Bitnami Containers Library (https://github.com/bitnami/containers) © 2026 Broadcom Inc. (licensed under Apache-2.0)
This project is licensed under the Apache License, Version 2.0.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Content type
Image
Digest
sha256:ecc3eb429…
Size
133.3 MB
Last updated
5 days ago
docker pull soldevelo/postgres-exporter