Skip to content

Commit 35b53f7

Browse files
authored
Merge pull request #614 from sysadmind/rc-update
Update rc file to reflect newer args
2 parents 3d7edd4 + 53b24d7 commit 35b53f7

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

postgres_exporter.rc

+3-19
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
@@ -29,23 +29,8 @@
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
7257
command="/usr/sbin/daemon"
7358
procname="/usr/local/bin/postgres_exporter"
7459
command_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

7863
start_precmd=postgres_exporter_startprecmd
@@ -86,4 +71,3 @@ postgres_exporter_startprecmd()
8671

8772
load_rc_config $name
8873
run_rc_command "$1"
89-

0 commit comments

Comments
 (0)