skytools.stats: loadable configuration (!)

The following options can be used in job's ini file:

stats_handlers = log, tnetstr
stats_handler.tnetstr = tnetstr://localhost:23232
stats_handler.tnetstr.extra = job_name, service_name, hostname, hostaddr, type

Alternatively, use the following options in job's ini file to load external config file:

use_stats_ini = 1
;stats_ini_locations = skystats.ini, stats.ini, ~/.skystats.ini, ~/.stats.ini, /etc/skystats.ini, /etc/stats.ini
;stats_ini_section = stats

While this might be the contents of standalone stats config file:

[stats]
handlers = log, tcp, tnetstr
params = interval:int
param_interval = 15

[handler_log]

[handler_tcp]
backend = tcp://localhost:23456
params = retry_factor: float
param_retry_factor = 3.14

[handler_tnetstr]
name = ccstats
backend = tnetstr://localhost:23232
extra_attrs = type, hostname