4
4
# REQUIRE: LOGIN
5
5
# KEYWORD: shutdown
6
6
#
7
- # rc-script for postgres_exporter
7
+ # rc-script for postgres_exporter
8
8
#
9
9
#
10
10
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
29
29
# postgres_exporter_pg_port (string): Set the Postgres database port
30
30
# Defaults to "5432"
31
31
32
- # Add extra arguments via "postgres_exporter_args" which could be choosen from:
32
+ # Add extra arguments via "postgres_exporter_args"
33
33
# (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.
49
34
50
35
51
36
. /etc/rc.subr
@@ -72,7 +57,7 @@ pidfile=/var/run/postgres_exporter.pid
72
57
command=" /usr/sbin/daemon"
73
58
procname=" /usr/local/bin/postgres_exporter"
74
59
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} \
76
61
${postgres_exporter_args} "
77
62
78
63
start_precmd=postgres_exporter_startprecmd
@@ -86,4 +71,3 @@ postgres_exporter_startprecmd()
86
71
87
72
load_rc_config $name
88
73
run_rc_command " $1 "
89
-
0 commit comments