| 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 |
# Reported time to process post
|
|
|
31 |
statistic.TimeToPost.description=Last Time to process post reported by system
|
|
|
32 |
statistic.TimeToPost.calculator=simple
|
|
|
33 |
statistic.TimeToPost.first.match=.*Time to process post=.*
|
|
|
34 |
statistic.TimeToPost.first.scrape=.*post={0}
|
|
|
35 |
|
|
|
36 |
# Time post logged
|
|
|
37 |
statistic.PostTime.description=Post time
|
|
|
38 |
statistic.PostTime.unit=time
|
|
|
39 |
statistic.PostTime.calculator=simple
|
|
|
40 |
statistic.PostTime.first.match=.*Time to process post=.*
|
|
|
41 |
|
|
|
42 |
# Free memory post logged
|
|
|
43 |
#statistic.PostFreeMem.description=Post memory
|
|
|
44 |
#statistic.PostFreeMem.unit=memory
|
|
|
45 |
#statistic.PostFreeMem.calculator=simple
|
|
|
46 |
#statistic.PostFreeMem.first.match=.*Time to process post=.*
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
# Max reported Time to process post
|
|
|
50 |
statistic.MaxTimeToPost.description=Maximum Time to process post reported by system
|
|
|
51 |
statistic.MaxTimeToPost.calculator=max
|
|
|
52 |
statistic.MaxTimeToPost.first.match=.*Time to process post=.*
|
|
|
53 |
statistic.MaxTimeToPost.first.scrape=.*post={0}
|
|
|
54 |
|
|
|
55 |
# Min reported Time to process post
|
|
|
56 |
statistic.MinTimeToPost.description=Minimum time to process post reported by system
|
|
|
57 |
statistic.MinTimeToPost.calculator=min
|
|
|
58 |
statistic.MinTimeToPost.first.match=.*Time to process post=.*
|
|
|
59 |
statistic.MinTimeToPost.first.scrape=.*post={0}
|
|
|
60 |
|
|
|
61 |
# Avg reported Time to process post
|
|
|
62 |
statistic.AvgTimeToPost.description=Average time to process post reported by system
|
|
|
63 |
statistic.AvgTimeToPost.calculator=average
|
|
|
64 |
statistic.AvgTimeToPost.first.match=.*Time to process post=.*
|
|
|
65 |
statistic.AvgTimeToPost.first.scrape=.*post={0}
|
|
|
66 |
|
|
|
67 |
# User session semantics (across threads)
|
|
|
68 |
|
|
|
69 |
# Method level semantics (in thread)
|
|
|
70 |
|
|
|
71 |
# Business level semantics (sc
|
|
|
72 |
|
|
|
73 |
# Post duration
|
|
|
74 |
statistic.ActualTimeToPost.description=Actual time to process post
|
|
|
75 |
statistic.ActualTimeToPost.unit=time
|
|
|
76 |
statistic.ActualTimeToPost.threadlocal=true
|
|
|
77 |
statistic.ActualTimeToPost.calculator=simple
|
|
|
78 |
statistic.ActualTimeToPost.first.match=.*Star Post.*
|
|
|
79 |
statistic.ActualTimeToPost.second.match=.*End Post.*
|
|
|
80 |
|
|
|
81 |
# Alerts
|
|
|
82 |
|
|
|
83 |
# User upper limit reached
|
|
|
84 |
|
|
|
85 |
#alert.MaxUserLimit.description=Maximum Number of users reached
|
|
|
86 |
#alert.MaxUserLimit.statistic=UserCount
|
|
|
87 |
#alert.MaxUserLimit.warn= >20
|
|
|
88 |
#alert.MaxUserLimit.category=alerts
|
|
|
89 |
|
|
|
90 |
# Error Rate
|
|
|
91 |
#alert.ErrorRateIncrease.description=ErrorRate Increase
|
|
|
92 |
#alert.ErrorRateIncrease.statistic=ErrorRate
|
|
|
93 |
#alert.ErrorRateIncrease.warn= >=800
|
|
|
94 |
#alert.ErrorRateIncrease.critical= >=1200
|
|
|
95 |
#alert.ErrorRateIncrease.category=alerts
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
### JAKUB HOLY - MY CONFIG
|
|
|
99 |
calculator.minuteRate.classname=net.sourceforge.stat4j.calculators.RunningRate
|
|
|
100 |
# Period is in [ms] 1000 * 60 = 1 min:
|
|
|
101 |
calculator.minuteRate.period=300000
|
|
|
102 |
|
|
|
103 |
statistic.RunningErrorRate.description=Errors per minute
|
|
|
104 |
statistic.RunningErrorRate.calculator=minuteRate
|
|
|
105 |
# Regular expression to match "<throwable.toString> <- <original log message>"
|
|
|
106 |
statistic.RunningErrorRate.first.match=[a-z,:./&()+@ A-Z1-9]*
|
|
|
107 |
#statistic.RunningErrorRate.first.match=*
|
|
|
108 |
|
|
|
109 |
# Error Rate
|
|
|
110 |
alert.TooManyErrorsRecently.description=Too many errors in the log
|
|
|
111 |
alert.TooManyErrorsRecently.statistic=RunningErrorRate
|
|
|
112 |
alert.TooManyErrorsRecently.warn= >=90
|
|
|
113 |
alert.TooManyErrorsRecently.critical= >=120
|
|
|
114 |
alert.TooManyErrorsRecently.category=alerts
|
|
|
115 |
# Ignore following warnings (or criticals, after the first critical) for the given amount of time:
|
|
|
116 |
# 1000 * 60 *1 = 1 min
|
|
|
117 |
alert.TooManyErrorsRecently.quietperiod=600000
|