Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

134 lines (105 sloc) 4.731 kb
# ==================================================
# Stat4J configuration properties file
# ==================================================
# Statistics
# ErrorRate
statistic.ErrorRate.description=Errors per second
statistic.ErrorRate.calculator=rate
statistic.ErrorRate.first.match=.*Exception.*
# 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= >=15
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=60000
statistic.RunningErrorRate.description=Errors per minute
statistic.RunningErrorRate.calculator=minuteRate
# Regular expression to match "<throwable.toString> <- <original log message>"
statistic.RunningErrorRate.first.match=.*Exception.*
# Error Rate
alert.TooManyErrorsRecently.description=Too many errors in the log
alert.TooManyErrorsRecently.statistic=RunningErrorRate
alert.TooManyErrorsRecently.warn= >=3
alert.TooManyErrorsRecently.critical= >=10
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
Jump to Line
Something went wrong with that request. Please try again.