44# REQUIRE: LOGIN
55# KEYWORD: shutdown
66#
7- # rc-script for postgres_exporter
7+ # rc-script for postgres_exporter
88#
99#
1010# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
2929# postgres_exporter_pg_port (string): Set the Postgres database port
3030# Defaults to "5432"
3131
32- # Add extra arguments via "postgres_exporter_args" which could be choosen from:
32+ # Add extra arguments via "postgres_exporter_args"
3333# (see $ postgres_exporter --help)
34- #
35- # -dumpmaps
36- # Do not run, simply dump the maps.
37- # -extend.query-path string
38- # Path to custom queries to run.
39- # -log.level value
40- # Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal].
41- # -version
42- # print version and exit
43- # -web.telemetry-path string
44- # Path under which to expose metrics. (default "/metrics")
45- # -log.format value
46- # If set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr.
47- # -extend.query-path string
48- # Path to custom queries to run.
4934
5035
5136. /etc/rc.subr
@@ -72,7 +57,7 @@ pidfile=/var/run/postgres_exporter.pid
7257command=" /usr/sbin/daemon"
7358procname=" /usr/local/bin/postgres_exporter"
7459command_args=" -p ${pidfile} /usr/bin/env DATA_SOURCE_NAME=" ${postgres_exporter_data_source_name} " ${procname} \
75- -web.listen-address=${postgres_exporter_listen_address} \
60+ -- web.listen-address=${postgres_exporter_listen_address} \
7661 ${postgres_exporter_args} "
7762
7863start_precmd=postgres_exporter_startprecmd
@@ -86,4 +71,3 @@ postgres_exporter_startprecmd()
8671
8772load_rc_config $name
8873run_rc_command " $1 "
89-
0 commit comments