(8.13+) Statistics Service Configuration in the vht_stats_api-config.yml File

The Statistics service is configurable by changing the values in the vht_stats_api-config.yml file. You can change the following parameters:

  • Statistics service port number
  • QueueWatch web service IP address and port number
  • Statistics service log level

Folder Location: Program Files (x86)\Virtual Hold Technology\Dashboard

File Name: vht_stats_api-config.yml

:host: '0.0.0.0'
:port: 2900
:env: 'production'
:ws_host: '10.30.0.82'
:ws_port: 80
:logroot: 'C:\Program Files (x86)\Virtual Hold Technology\VHLogs\Logs\'
:historyroot: 'C:\Program Files (x86)\Virtual Hold Technology\Dashboard\'
:log_file_size: '10485760'
:log_rolling_interval: '60'
:log_rolling_timeout: '120'
# DEBUG == 0
# INFO == 1
# WARN == 2
# ERROR == 3
# FATAL == 4
# UNKNOWN == 5
:loglevel: 2
Configuration SettingDescription
portThe port for the Statistics service. The default port is 2900.
ws_hostThe IP address for the QueueWatch web service. The IP address defaults to localhost (127.0.0.1).
ws_portThe port for the QueueWatch web service. The default port is 80.
logrootThe location of the Virtual Hold logs directory.
historyrootThe location of Dashboards files, including historian.dat.
log_file_sizeThe maximum size for StatisticsService logs, in bytes.
log_rolling_intervalThe default interval at which to check the StatisticsService log file size, in seconds.
log_rolling_timeoutA timeout for the log-rolling process, to ensure the process does not become stuck. The default value is 120 seconds.
loglevel

The log level controls the number of messages logged by the Statistics service. Log levels include:

  • 4 - FATAL
  • 3 - ERROR
  • 2 - WARN
  • 1 - INFO
  • 0 - DEBUG

Each log level also includes all messages written by the higher log levels. For example, log level 2 would also include all messages written by levels 3 and 4.

The default log level is 2 (WARN).