Date: Sat, 1 Nov 2025 15:40:32 GMT From: Lexi Winter <ivy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8f5520c3bdaa - main - databases/prometheus-postgres-exporter: Allow environment to be set Message-ID: <202511011540.5A1FeWE6089432@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by ivy: URL: https://cgit.FreeBSD.org/ports/commit/?id=8f5520c3bdaad14bead3d5644ea787787f906349 commit 8f5520c3bdaad14bead3d5644ea787787f906349 Author: Zeus Panchenko <zeus@gnu.org.ua> AuthorDate: 2025-11-01 15:39:53 +0000 Commit: Lexi Winter <ivy@FreeBSD.org> CommitDate: 2025-11-01 15:39:53 +0000 databases/prometheus-postgres-exporter: Allow environment to be set When not using multi-target mode, postgres_exporter relies on its environment for configuration of the monitoring target. Add a new postgres_exporter_env rc.conf option to allow this to be configured. PR: 290694 Reviewed by: arrowd Approved by: arrowd (ports) Differential Revision: https://reviews.freebsd.org/D53513 --- databases/prometheus-postgres-exporter/Makefile | 2 +- databases/prometheus-postgres-exporter/files/postgres_exporter.in | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/databases/prometheus-postgres-exporter/Makefile b/databases/prometheus-postgres-exporter/Makefile index 4fea7f72e1b2..e130388a7645 100644 --- a/databases/prometheus-postgres-exporter/Makefile +++ b/databases/prometheus-postgres-exporter/Makefile @@ -1,7 +1,7 @@ PORTNAME= prometheus-postgres-exporter DISTVERSIONPREFIX= v DISTVERSION= 0.18.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= databases MAINTAINER= ivy@FreeBSD.org diff --git a/databases/prometheus-postgres-exporter/files/postgres_exporter.in b/databases/prometheus-postgres-exporter/files/postgres_exporter.in index e96e638fa152..e6c0f93fdfc9 100644 --- a/databases/prometheus-postgres-exporter/files/postgres_exporter.in +++ b/databases/prometheus-postgres-exporter/files/postgres_exporter.in @@ -17,6 +17,10 @@ # Default is "nobody". # postgres_exporter_args (string): Set extra arguments to pass to postgres_exporter # Default is "". +# postgres_exporter_env (string) Set environment passed to postgres_exporter. +# A series of VAR=value pairs. If not using multi-target mode, +# this may be used to set the target DSN via $DATA_SOURCE_URI. +# Default is "". # postgres_exporter_listen_address (string):Set ip:port that postgres_exporter will listen on # Default is "localhost:9187". # postgres_exporter_syslog_output_tag (str): Set syslog tag. @@ -39,6 +43,7 @@ load_rc_config $name : ${postgres_exporter_user:="nobody"} : ${postgres_exporter_group:="nobody"} : ${postgres_exporter_args:=""} +: ${postgres_exporter_env:=""} : ${postgres_exporter_listen_address:="localhost:9187"} : ${postgres_exporter_syslog_output_tag=${name}} : ${postgres_exporter_syslog_output_priority=notice} @@ -51,7 +56,7 @@ command_args="-f -p ${pidfile} -t ${name} \ -T ${postgres_exporter_syslog_output_tag} \ -s ${postgres_exporter_syslog_output_priority} \ -l ${postgres_exporter_syslog_output_facility} \ - /usr/bin/env ${procname} \ + /usr/bin/env ${postgres_exporter_env} ${procname} \ --web.listen-address=${postgres_exporter_listen_address} \ --config.file=${postgres_exporter_config_file} \ ${postgres_exporter_args}"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511011540.5A1FeWE6089432>
