Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5827 amar.kumar 1
# ==================================================
2
# Stat4J	configuration properties file
3
# ==================================================
4
 
5
# Statistics
6
 
7
# ErrorRate
8
statistic.ErrorRate.description=Errors per second
9
statistic.ErrorRate.calculator=rate
10
statistic.ErrorRate.first.match=.*Exception.*
11
 
12
# User Count
13
statistic.UserCount.description=Number of users logged onto the system
14
statistic.UserCount.calculator=runningcount
15
statistic.UserCount.first.match=.*login.*
16
statistic.UserCount.second.match=.*.logout.*
17
 
18
# Max User Count
19
statistic.MaxUserCount.description=Peak number of users logged into the system
20
statistic.MaxUserCount.calculator=maxcount
21
statistic.MaxUserCount.first.match=.*login.*
22
statistic.MaxUserCount.second.match=.*.logout.*
23
 
24
# Average time for method call
25
statistic.FooDuration.description=Average time for method foo()
26
statistic.FooDuration.unit=time
27
statistic.FooDuration.calculator=average
28
statistic.FooDuration.first.match=.*BEGIN foo().*
29
statistic.FooDuration.second.match=.*END foo().*
30
 
31
# Max time for method call
32
statistic.FooMaxDuration.description=Max time for method foo()
33
statistic.FooMaxDuration.unit=time
34
statistic.FooMaxDuration.calculator=max
35
statistic.FooMaxDuration.first.match=.*BEGIN foo().*
36
statistic.FooMaxDuration.second.match=.*END foo().*
37
 
38
# Average memory for method call
39
statistic.FooMemory.description=Average change in free memory
40
statistic.FooMemory.unit=memory
41
statistic.FooMemory.calculator=average
42
statistic.FooMemory.first.match=.*BEGIN foo().*
43
statistic.FooMemory.second.match=.*END foo().*
44
 
45
 
46
# Reported time to process post
47
statistic.TimeToPost.description=Last Time to process post reported by system
48
statistic.TimeToPost.calculator=simple
49
statistic.TimeToPost.first.match=.*Time to process post=.*
50
statistic.TimeToPost.first.scrape=.*post={0}
51
 
52
# Time post logged
53
statistic.PostTime.description=Post time
54
statistic.PostTime.unit=time
55
statistic.PostTime.calculator=simple
56
statistic.PostTime.first.match=.*Time to process post=.*
57
 
58
# Free memory post logged
59
statistic.PostFreeMem.description=Post memory
60
statistic.PostFreeMem.unit=memory
61
statistic.PostFreeMem.calculator=simple
62
statistic.PostFreeMem.first.match=.*Time to process post=.*
63
 
64
 
65
# Max reported Time to process post
66
statistic.MaxTimeToPost.description=Maximum Time to process post reported by system
67
statistic.MaxTimeToPost.calculator=max
68
statistic.MaxTimeToPost.first.match=.*Time to process post=.*
69
statistic.MaxTimeToPost.first.scrape=.*post={0}
70
 
71
# Min reported Time to process post
72
statistic.MinTimeToPost.description=Minimum time to process post reported by system
73
statistic.MinTimeToPost.calculator=min
74
statistic.MinTimeToPost.first.match=.*Time to process post=.*
75
statistic.MinTimeToPost.first.scrape=.*post={0}
76
 
77
# Avg reported Time to process post
78
statistic.AvgTimeToPost.description=Average  time to process post reported by system
79
statistic.AvgTimeToPost.calculator=average
80
statistic.AvgTimeToPost.first.match=.*Time to process post=.*
81
statistic.AvgTimeToPost.first.scrape=.*post={0}
82
 
83
# User session semantics (across threads)
84
 
85
# Method level semantics	(in thread)
86
 
87
# Business level semantics (sc
88
 
89
# Post duration
90
statistic.ActualTimeToPost.description=Actual time to process post
91
statistic.ActualTimeToPost.unit=time
92
statistic.ActualTimeToPost.threadlocal=true
93
statistic.ActualTimeToPost.calculator=simple
94
statistic.ActualTimeToPost.first.match=.*Star Post.*
95
statistic.ActualTimeToPost.second.match=.*End Post.*
96
 
97
# Alerts
98
 
99
# User upper limit reached
100
 
101
alert.MaxUserLimit.description=Maximum Number of users reached
102
alert.MaxUserLimit.statistic=UserCount
103
alert.MaxUserLimit.warn= >20
104
alert.MaxUserLimit.category=alerts
105
 
106
# Error Rate
107
alert.ErrorRateIncrease.description=ErrorRate Increase
108
alert.ErrorRateIncrease.statistic=ErrorRate
109
alert.ErrorRateIncrease.warn= >=15
110
alert.ErrorRateIncrease.critical= >=25
111
alert.ErrorRateIncrease.category=alerts
112
 
113
 
114
### JAKUB HOLY - MY CONFIG
115
calculator.minuteRate.classname=net.sourceforge.stat4j.calculators.RunningRate
116
# Period is in [ms] 1000 * 60 = 1 min:
117
calculator.minuteRate.period=60000
118
 
119
statistic.RunningErrorRate.description=Errors per minute
120
statistic.RunningErrorRate.calculator=minuteRate
121
# Regular expression to match "<throwable.toString> <- <original log message>"
122
statistic.RunningErrorRate.first.match=.*Exception.*
123
 
124
# Error Rate
125
alert.TooManyErrorsRecently.description=Too many errors in the log
126
alert.TooManyErrorsRecently.statistic=RunningErrorRate
127
alert.TooManyErrorsRecently.warn= >=3
128
alert.TooManyErrorsRecently.critical= >=10
129
alert.TooManyErrorsRecently.category=alerts
130
# Ignore following warnings (or criticals, after the first critical) for the given amount of time:
131
# 1000 * 60 *10 = 10 min
132
alert.TooManyErrorsRecently.quietperiod=600000
133