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

# 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= >=800
#alert.ErrorRateIncrease.critical= >=1200
#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=300000

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= >=90
alert.TooManyErrorsRecently.critical= >=120
alert.TooManyErrorsRecently.category=alerts
# Ignore following warnings (or criticals, after the first critical) for the given amount of time:
# 1000 * 60 *1 = 1 min
alert.TooManyErrorsRecently.quietperiod=600000