1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

databases/prometheus-postgres-exporter: update to 0.16.0

- the maintainer address is updated
 - a new pkg-message is added to document the breaking change in the log
   format when upgrading the package.

upstream release notes:

---o<---
BREAKING CHANGES:

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 bewen 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.

* [CHANGE] Replace logging system #1073
* [ENHANCEMENT] Add save_wal_size and wal_status to replication_slot collector #1027
* [ENHANCEMENT] Add roles collector and connection limit metrics to database collector #997
* [ENHANCEMENT] Excluded databases log messgae is now info level #1003
* [ENHANCEMENT] Add active_time to stat_database collector #961
* [ENHANCEMENT] Add slot_type label to replication_slot collector #960
* [BUGFIX] Fix walreceiver collectore when no repmgr #1086
* [BUGFIX] Remove logging errors on replicas #1048
* [BUGFIX] Fix active_time query on postgres>=14 #1045
---o<---

PR:		255100
This commit is contained in:
Lexi Winter 2024-11-12 14:07:23 +01:00 committed by Robert Clausecker
parent 1c89946d2a
commit a3b2656e21
4 changed files with 38 additions and 9 deletions

View File

@ -5,6 +5,21 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20241112
AFFECTS: users of databases/prometheus-postgres-exporter
AUTHOR: lexi@hemlock.eden.le-fay.org
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.
20241110
AFFECTS: users of devel/apr1 and www/apache24
AUTHOR: brnrd@FreeBSD.org

View File

@ -1,10 +1,9 @@
PORTNAME= prometheus-postgres-exporter
DISTVERSIONPREFIX= v
DISTVERSION= 0.15.0
PORTREVISION= 3
DISTVERSION= 0.16.0
CATEGORIES= databases
MAINTAINER= lexi.freebsd@le-fay.org
MAINTAINER= lexi@hemlock.eden.le-fay.org
COMMENT= PostgreSQL metric exporter for Prometheus
WWW= https://github.com/prometheus-community/postgres_exporter
@ -19,7 +18,7 @@ GO_TARGET= ./cmd/postgres_exporter:${PREFIX}/bin/postgres_exporter
SUB_FILES= pkg-message
PLIST_FILES= bin/postgres_exporter \
etc/postgres_exporter.yml.sample
etc/postgres_exporter.yml.sample
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1708907285
SHA256 (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.15.0/v0.15.0.mod) = 2eca3234e2449a0b04bf99c4761b5b62e6ddd6be2b9083b89837a57087fb0a59
SIZE (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.15.0/v0.15.0.mod) = 1853
SHA256 (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.15.0/v0.15.0.zip) = cbe281e1764b5df206eafd0ae5e5fee0b569afb3883b1502d2b1793694a53dd5
SIZE (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.15.0/v0.15.0.zip) = 151785
TIMESTAMP = 1731341402
SHA256 (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.16.0/v0.16.0.mod) = e16051bb4c30828066f28f893adb575164484a0a3ac2740c089a99057e22c0b1
SIZE (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.16.0/v0.16.0.mod) = 1805
SHA256 (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.16.0/v0.16.0.zip) = 1246fbf68c0a81929ca97f4967dfabaab40604c216917a7073f5904e282b7d05
SIZE (go/databases_prometheus-postgres-exporter/prometheus-postgres-exporter-v0.16.0/v0.16.0.zip) = 156127

View File

@ -26,4 +26,19 @@ exporter into Prometheus, refer to the documentation at:
https://github.com/prometheus-community/postgres_exporter
EOM
}
{ type: upgrade
maximum_version: "0.16.0"
message: <<EOM
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.
EOM
}
]