BSD Ports

databases/prometheus-postgres-exporter 0.19.1_9 FreeBSD

PostgreSQL metric exporter for Prometheus

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
APACHE20
Categories
databases
Package size
4100.5 KiB, 13656.7 KiB installed

Description

postgres_exporter is a Prometheus exporter for the PostgreSQL database. It can connect to multiple PostgreSQL databases as configured in Prometheus, and reports system-level metrics.

In the other systems

SystemPortVersion
FreeBSDdatabases/prometheus-postgres-exporter0.19.1_9
DragonFlydatabases/prometheus-postgres-exporter0.16.0_1

Install

Binary package:

pkg install prometheus-postgres-exporter

From the ports tree:

cd /usr/ports/databases/prometheus-postgres-exporter/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	prometheus-postgres-exporter>0:databases/prometheus-postgres-exporter

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.19.1_80.19.1_8-0.17.1_40.19.1_8
FreeBSD:14:quarterly0.19.1_80.19.1_8n/a0.17.1_20.19.1_8
FreeBSD:15:latest0.19.1_80.19.1_8n/a-0.17.1_4
FreeBSD:15:quarterly0.19.1_80.19.1_8n/an/an/a
FreeBSD:16:latest0.19.1_70.19.1_8n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
go:modules
Service scripts
postgres_exporter

Message after installing

A sample configuration file has been installed in
/usr/local/etc/postgres_exporter.yml.sample.

To use postgres_exporter, copy this config file to "postgres_exporter.yml"
and edit as needed, then enable and start the service:

# service postgres_exporter enable
# service postgres_exporter start

For rc(8) options which can be used to configure the service, refer to
/usr/local/etc/rc.d/postgres_exporter.

For example, to log output to the 'local5' syslog facility instead of the
default 'daemon':

# sysrc postgres_exporter_syslog_output_facility=local5

By default, the exporter runs as the 'nobody' user and listens on
localhost:9187.  These defaults can be changed via rc(8).

For documentation on the configuration file format and how to integrate the
exporter into Prometheus, refer to the documentation at:
https://github.com/prometheus-community/postgres_exporter

BREAKING CHANGE: In postgres_exporter 0.16.0 and later, the log message format
has changed.  From the upstream release notes:

The logging system has been replaced with log/slog from the stdlib. This change
is being made across the prometheus ecosystem. The logging output has changed,
but the messages and levels remain the same. The ts label for the timestamp has
been replaced with time, the accuracy is less, and the timezone is not forced
to UTC. The caller field has been replaced by the source field, which now
includes the full path to the source file. The level field now exposes the log
level in capital letters.

Files

distinfo 2
FileSizeSHA256
go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.19.1/v0.19.1.mod19262ccc8b2cbec2c2f3d59448f9fe372da3d4b32672576d63f61886ca087deca83e
go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.19.1/v0.19.1.zip17572818e9c882afce65ac6c214e9686e5a1f8bd9bf1700a432e5e5e7aae845e5ef4c7

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.