Skip to content

Commit

Permalink
fix(packaging): update -log.format parameter for deb/rpm config (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
burningalchemist authored Oct 26, 2024
1 parent cfb08a1 commit 29c47a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packaging/conf/sql_exporter.default
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CONF_FILE=/etc/sql_exporter/sql_exporter.yml
LISTEN_ADDRESS=0.0.0.0:9399
LOG_JSON=false
LOG_FORMAT=logfmt
LOG_LEVEL=debug
ENABLE_RELOAD=false
METRICS_PATH=/metrics
Expand Down
2 changes: 1 addition & 1 deletion packaging/deb/sql_exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Restart=on-failure
WorkingDirectory=/usr/share/sql_exporter
RuntimeDirectory=sql_exporter
RuntimeDirectoryMode=0750
ExecStart=/usr/bin/sql_exporter -config.file=${CONF_FILE} -web.listen-address=${LISTEN_ADDRESS} -log.json=${LOG_JSON} -log.level=${LOG_LEVEL} -web.enable-reload=${ENABLE_RELOAD} -web.metrics-path=${METRICS_PATH} -web.config.file=${WEB_CONFIG_FILE}
ExecStart=/usr/bin/sql_exporter -config.file=${CONF_FILE} -web.listen-address=${LISTEN_ADDRESS} -log.format=${LOG_FORMAT} -log.level=${LOG_LEVEL} -web.enable-reload=${ENABLE_RELOAD} -web.metrics-path=${METRICS_PATH} -web.config.file=${WEB_CONFIG_FILE}
LimitNOFILE=10000
TimeoutStopSec=20
CapabilityBoundingSet=
Expand Down
2 changes: 1 addition & 1 deletion packaging/rpm/sql_exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Restart=on-failure
WorkingDirectory=/usr/share/sql_exporter
RuntimeDirectory=sql_exporter
RuntimeDirectoryMode=0750
ExecStart=/usr/bin/sql_exporter -config.file=${CONF_FILE} -web.listen-address=${LISTEN_ADDRESS} -log.json=${LOG_JSON} -log.level=${LOG_LEVEL} -web.enable-reload=${ENABLE_RELOAD} -web.metrics-path=${METRICS_PATH} -web.config.file=${WEB_CONFIG_FILE}
ExecStart=/usr/bin/sql_exporter -config.file=${CONF_FILE} -web.listen-address=${LISTEN_ADDRESS} -log.format=${LOG_FORMAT} -log.level=${LOG_LEVEL} -web.enable-reload=${ENABLE_RELOAD} -web.metrics-path=${METRICS_PATH} -web.config.file=${WEB_CONFIG_FILE}
LimitNOFILE=10000
TimeoutStopSec=20
CapabilityBoundingSet=
Expand Down

0 comments on commit 29c47a4

Please sign in to comment.