Fix metrics configuration
This commit is contained in:
parent
434a609283
commit
549dd56a9f
|
@ -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}'"
|
||||||
|
|
Loading…
Reference in a new issue