Sign inSign up

soldevelo/postgres-exporter

By soldevelo

Updated 5 days ago

PostgreSQL Exporter by SolDevelo, a maintained fork of the Bitnami Exporter image.

Image
Integration & delivery
Databases & storage
Monitoring & observability
2

3.1K

soldevelo/postgres-exporter repository overview

SolDevelo PostgreSQL Exporter

Verified by InfraScan Docker Pulls Docker Image Size GitHub stars GitHub issues License

SolDevelo PostgreSQL Exporter Docker Image

PostgreSQL Exporter by SolDevelo, a maintained fork of the Bitnami PostgreSQL Exporter image.

PostgreSQL Exporter gathers PostgreSQL metrics for Prometheus consumption.

What is PostgreSQL Exporter?

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.

TL;DR

docker run --name postgres-exporter \
	-e DATA_SOURCE_NAME="postgresql://user:password@host:5432/dbname?sslmode=disable" \
	docker.io/soldevelo/postgres-exporter:latest

Features

  • Maintained PostgreSQL Exporter container image by SolDevelo.
  • Based on Bitnami PostgreSQL Exporter container (Apache-2.0 licensed).
  • Ready to use with Docker or Docker Compose.
  • Exposes PostgreSQL metrics for Prometheus scraping.
  • Future support for additional containers planned.

Get this image

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 .

Connecting to other containers

Using Docker container networking, PostgreSQL Exporter can scrape PostgreSQL running in another container on the same network.

Step 1: Create a network
docker network create monitoring-network --driver bridge
Step 2: Start PostgreSQL
docker run -d --name postgresql \
	--network monitoring-network \
	-e POSTGRESQL_PASSWORD=mypassword \
	docker.io/soldevelo/postgresql-repmgr:17
Step 3: Start PostgreSQL Exporter
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

Run PostgreSQL Exporter using Docker Compose

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

Configuration

Find all configuration flags in the official postgres_exporter documentation: https://github.com/prometheus-community/postgres_exporter#flags

Logging

The container sends logs to stdout. To view logs:

docker logs postgres-exporter

Documentation

https://github.com/SolDevelo/containers/tree/main/soldevelo/postgres-exporter

Contributing

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.

License

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.

Tag summary

Content type

Image

Digest

sha256:ecc3eb429

Size

133.3 MB

Last updated

5 days ago

docker pull soldevelo/postgres-exporter