Skip to content

Update rc file to reflect newer args #614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions postgres_exporter.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# rc-script for postgres_exporter
# rc-script for postgres_exporter
#
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
Expand All @@ -29,23 +29,8 @@
# postgres_exporter_pg_port (string): Set the Postgres database port
# Defaults to "5432"

# Add extra arguments via "postgres_exporter_args" which could be choosen from:
# Add extra arguments via "postgres_exporter_args"
# (see $ postgres_exporter --help)
#
# -dumpmaps
# Do not run, simply dump the maps.
# -extend.query-path string
# Path to custom queries to run.
# -log.level value
# Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal].
# -version
# print version and exit
# -web.telemetry-path string
# Path under which to expose metrics. (default "/metrics")
# -log.format value
# If set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr.
# -extend.query-path string
# Path to custom queries to run.


. /etc/rc.subr
Expand All @@ -72,7 +57,7 @@ pidfile=/var/run/postgres_exporter.pid
command="/usr/sbin/daemon"
procname="/usr/local/bin/postgres_exporter"
command_args="-p ${pidfile} /usr/bin/env DATA_SOURCE_NAME="${postgres_exporter_data_source_name}" ${procname} \
-web.listen-address=${postgres_exporter_listen_address} \
--web.listen-address=${postgres_exporter_listen_address} \
${postgres_exporter_args}"

start_precmd=postgres_exporter_startprecmd
Expand All @@ -86,4 +71,3 @@ postgres_exporter_startprecmd()

load_rc_config $name
run_rc_command "$1"