Fix metrics configuration

This commit is contained in:
Semen Bezrukov 2020-07-22 12:57:25 +03:00
parent 434a609283
commit 549dd56a9f
2 changed files with 1 additions and 2 deletions

View file

@ -186,8 +186,7 @@ waiting_for_datacontainer(){
} }
update_statsd_settings(){ update_statsd_settings(){
cp ${SYSCONF_TEMPLATES_DIR}/statsd/config.js ${APP_DIR}/server/Metrics/config/config.js ${JSON} -I -e "if(this.statsd===undefined)this.statsd={};"
${JSON} -I -e "this.statsd.useMetrics = '${METRICS_ENABLED}'" ${JSON} -I -e "this.statsd.useMetrics = '${METRICS_ENABLED}'"
${JSON} -I -e "this.statsd.host = '${METRICS_HOST}'" ${JSON} -I -e "this.statsd.host = '${METRICS_HOST}'"
${JSON} -I -e "this.statsd.port = '${METRICS_PORT}'" ${JSON} -I -e "this.statsd.port = '${METRICS_PORT}'"