Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

# ==================================================
# Stat4J        configuration properties file
# ==================================================

# Statistics

# Default factory for creating statistics and calculators
factory.name=DefaultFactory
factory.DefaultFactory.classname=net.sourceforge.stat4j.config.ResourceBundleStatisticsFactory
factory.DefaultFactory.bundle=stat4j


# ErrorRate
statistic.ErrorRate.description=Errors per second
statistic.ErrorRate.calculator=rate
statistic.ErrorRate.first.match=[a-z,:./&()+@ A-Z1-9]*
#statistic.ErrorRate.first.match=*

# Calculators
calculator.average.classname=net.sourceforge.stat4j.calculators.Average
calculator.min.classname=net.sourceforge.stat4j.calculators.Minimum
calculator.max.classname=net.sourceforge.stat4j.calculators.Maximum
calculator.rate.classname=net.sourceforge.stat4j.calculators.Rate
calculator.rate.period=1000
calculator.runningcount.classname=net.sourceforge.stat4j.calculators.RunningCount
calculator.maxcount.classname=net.sourceforge.stat4j.calculators.MaxCount
calculator.simple.classname=net.sourceforge.stat4j.calculators.Simple
calculator.sum.classname=net.sourceforge.stat4j.calculators..Sum


# User Count
#statistic.UserCount.description=Number of users logged onto the system
#statistic.UserCount.calculator=runningcount
#statistic.UserCount.first.match=.*login.*
#statistic.UserCount.second.match=.*.logout.*

# Max User Count
#statistic.MaxUserCount.description=Peak number of users logged into the system
#statistic.MaxUserCount.calculator=maxcount
#statistic.MaxUserCount.first.match=.*login.*
#statistic.MaxUserCount.second.match=.*.logout.*

# Average time for method call
#statistic.FooDuration.description=Average time for method foo()
#statistic.FooDuration.unit=time
#statistic.FooDuration.calculator=average
#statistic.FooDuration.first.match=.*BEGIN foo().*
#statistic.FooDuration.second.match=.*END foo().*

# Max time for method call
#statistic.FooMaxDuration.description=Max time for method foo()
#statistic.FooMaxDuration.unit=time
#statistic.FooMaxDuration.calculator=max
#statistic.FooMaxDuration.first.match=.*BEGIN foo().*
#statistic.FooMaxDuration.second.match=.*END foo().*

# Average memory for method call
#statistic.FooMemory.description=Average change in free memory
#statistic.FooMemory.unit=memory
#statistic.FooMemory.calculator=average
#statistic.FooMemory.first.match=.*BEGIN foo().*
#statistic.FooMemory.second.match=.*END foo().*


# Reported time to process post
statistic.TimeToPost.description=Last Time to process post reported by system
statistic.TimeToPost.calculator=simple
statistic.TimeToPost.first.match=.*Time to process post=.*
statistic.TimeToPost.first.scrape=.*post={0}

# Time post logged
statistic.PostTime.description=Post time
statistic.PostTime.unit=time
statistic.PostTime.calculator=simple
statistic.PostTime.first.match=.*Time to process post=.*

# Free memory post logged
#statistic.PostFreeMem.description=Post memory
#statistic.PostFreeMem.unit=memory
#statistic.PostFreeMem.calculator=simple
#statistic.PostFreeMem.first.match=.*Time to process post=.*


# Max reported Time to process post
statistic.MaxTimeToPost.description=Maximum Time to process post reported by system
statistic.MaxTimeToPost.calculator=max
statistic.MaxTimeToPost.first.match=.*Time to process post=.*
statistic.MaxTimeToPost.first.scrape=.*post={0}

# Min reported Time to process post
statistic.MinTimeToPost.description=Minimum time to process post reported by system
statistic.MinTimeToPost.calculator=min
statistic.MinTimeToPost.first.match=.*Time to process post=.*
statistic.MinTimeToPost.first.scrape=.*post={0}

# Avg reported Time to process post
statistic.AvgTimeToPost.description=Average  time to process post reported by system
statistic.AvgTimeToPost.calculator=average
statistic.AvgTimeToPost.first.match=.*Time to process post=.*
statistic.AvgTimeToPost.first.scrape=.*post={0}

# User session semantics (across threads)

# Method level semantics        (in thread)

# Business level semantics (sc

# Post duration
statistic.ActualTimeToPost.description=Actual time to process post
statistic.ActualTimeToPost.unit=time
statistic.ActualTimeToPost.threadlocal=true
statistic.ActualTimeToPost.calculator=simple
statistic.ActualTimeToPost.first.match=.*Star Post.*
statistic.ActualTimeToPost.second.match=.*End Post.*

# Alerts

# User upper limit reached

#alert.MaxUserLimit.description=Maximum Number of users reached
#alert.MaxUserLimit.statistic=UserCount
#alert.MaxUserLimit.warn= >20
#alert.MaxUserLimit.category=alerts

# Error Rate
alert.ErrorRateIncrease.description=ErrorRate Increase
alert.ErrorRateIncrease.statistic=ErrorRate
alert.ErrorRateIncrease.warn= >=20
alert.ErrorRateIncrease.critical= >=25
alert.ErrorRateIncrease.category=alerts


### JAKUB HOLY - MY CONFIG
calculator.minuteRate.classname=net.sourceforge.stat4j.calculators.RunningRate
# Period is in [ms] 1000 * 60 = 1 min:
calculator.minuteRate.period=600000

statistic.RunningErrorRate.description=Errors per minute
statistic.RunningErrorRate.calculator=minuteRate
# Regular expression to match "<throwable.toString> <- <original log message>"
statistic.RunningErrorRate.first.match=[a-z,:./&()+@ A-Z1-9]*
#statistic.RunningErrorRate.first.match=*

# Error Rate
alert.TooManyErrorsRecently.description=Too many errors in the log
alert.TooManyErrorsRecently.statistic=RunningErrorRate
alert.TooManyErrorsRecently.warn= >=20
alert.TooManyErrorsRecently.critical= >=25
alert.TooManyErrorsRecently.category=alerts
# Ignore following warnings (or criticals, after the first critical) for the given amount of time:
# 1000 * 60 *10 = 10 min
alert.TooManyErrorsRecently.quietperiod=600000