Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139099657
D53513.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D53513.diff
View Options
diff --git a/databases/prometheus-postgres-exporter/Makefile b/databases/prometheus-postgres-exporter/Makefile
--- 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
--- 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 @@
: ${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 @@
-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}"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 8, 7:27 PM (8 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26818330
Default Alt Text
D53513.diff (2 KB)
Attached To
Mode
D53513: databases/prometheus-postgres-exporter: Allow environment to be set
Attached
Detach File
Event Timeline
Log In to Comment