Period Manager and Data Saver

First, period manager and data saver to be used by counters must be defined.

You can either use an existing period manager (command provadmin display kpsastats otype=pm will list them), or create a new one.

You can put in your statistic configuration file (example.ini):

# A counting period of 10 seconds 
# 
[ \example\MyPeriodManager : kpsastats::PeriodManagerConf ] 
name = MyPeriodManager 
duration = 10 
startOnCreate = yes

You can either use an existing data saver (command provadmin display kpsastats otype=ds will list them), or create a new one.

You can put in your statistic configuration file (example.ini):

# Statistic data will be saved every 5 minutes.  
# 
[ \example\MyDataSaver : kpsastats::OneFilePerCounterConf ] 
name = MyDataSaver 
description = My data saver for the example. 
interval = 5 
startOnCreate = yes 
cfg_outputDir = . 
cfg_maxFileSize = 100000 
cfg_maxFileCount = 100 
cfg_filenameFormat = .%C.report 
separator = \t 
withEndDate = yes

If attribute startOnCreate is set to false, theses entities will be started later with command provadmin start kpsastats otype=pm|ds.

Then the statistic configuration file must be loaded with command provadmin load kpsastats file=example.ini.