Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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