diff --git a/packaging/conf/sql_exporter.default b/packaging/conf/sql_exporter.default index 083d83c2..3ad152fd 100644 --- a/packaging/conf/sql_exporter.default +++ b/packaging/conf/sql_exporter.default @@ -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 diff --git a/packaging/deb/sql_exporter.service b/packaging/deb/sql_exporter.service index cc052630..ae9e4fb0 100644 --- a/packaging/deb/sql_exporter.service +++ b/packaging/deb/sql_exporter.service @@ -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= diff --git a/packaging/rpm/sql_exporter.service b/packaging/rpm/sql_exporter.service index 5956ac06..a92ca58a 100644 --- a/packaging/rpm/sql_exporter.service +++ b/packaging/rpm/sql_exporter.service @@ -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=