|
| 1 | +# ================================================== |
| 2 | +# Stat4J configuration properties file |
| 3 | +# ================================================== |
| 4 | + |
| 5 | +# Log4J category to use for star4j logs |
| 6 | +logcategory=stat4j |
| 7 | + |
| 8 | +# Default factory for creating statistics and calculators |
| 9 | +factory.name=DefaultFactory |
| 10 | +factory.DefaultFactory.classname=au.com.stat4j.config.ResourceBundleStatisticsFactory |
| 11 | +factory.DefaultFactory.bundle=au.com.stat4j.stat4j |
| 12 | + |
| 13 | +# Scraper default decimal format |
| 14 | +# decimalformat= |
| 15 | + |
| 16 | +# Calculators |
| 17 | +calculator.average.classname=au.com.stat4j.calculators.Average |
| 18 | +calculator.min.classname=au.com.stat4j.calculators.Minimum |
| 19 | +calculator.max.classname=au.com.stat4j.calculators.Maximum |
| 20 | +calculator.rate.classname=au.com.stat4j.calculators.Rate |
| 21 | +calculator.rate.period=1000 |
| 22 | +calculator.runningcount.classname=au.com.stat4j.calculators.RunningCount |
| 23 | +calculator.maxcount.classname=au.com.stat4j.calculators.MaxCount |
| 24 | +calculator.simple.classname=au.com.stat4j.calculators.Simple |
| 25 | +calculator.sum.classname=au.com.stat4j.calculators.Sum |
| 26 | + |
| 27 | +# Statistics |
| 28 | + |
| 29 | +# ErrorRate |
| 30 | +statistic.ErrorRate.description=Errors per second |
| 31 | +statistic.ErrorRate.calculator=rate |
| 32 | +statistic.ErrorRate.first.match=.*Exception.* |
| 33 | + |
| 34 | +# User Count |
| 35 | +statistic.UserCount.description=Number of users logged onto the system |
| 36 | +statistic.UserCount.calculator=runningcount |
| 37 | +statistic.UserCount.first.match=.*login.* |
| 38 | +statistic.UserCount.second.match=.*.logout.* |
| 39 | + |
| 40 | +# Max User Count |
| 41 | +statistic.MaxUserCount.description=Peak number of users logged into the system |
| 42 | +statistic.MaxUserCount.calculator=maxcount |
| 43 | +statistic.MaxUserCount.first.match=.*login.* |
| 44 | +statistic.MaxUserCount.second.match=.*.logout.* |
| 45 | + |
| 46 | +# Average time for method call |
| 47 | +statistic.FooDuration.description=Average time for method foo() |
| 48 | +statistic.FooDuration.unit=time |
| 49 | +statistic.FooDuration.calculator=average |
| 50 | +statistic.FooDuration.first.match=.*BEGIN foo().* |
| 51 | +statistic.FooDuration.second.match=.*END foo().* |
| 52 | + |
| 53 | +# Max time for method call |
| 54 | +statistic.FooMaxDuration.description=Max time for method foo() |
| 55 | +statistic.FooMaxDuration.unit=time |
| 56 | +statistic.FooMaxDuration.calculator=max |
| 57 | +statistic.FooMaxDuration.first.match=.*BEGIN foo().* |
| 58 | +statistic.FooMaxDuration.second.match=.*END foo().* |
| 59 | + |
| 60 | +# Average memory for method call |
| 61 | +statistic.FooMemory.description=Average change in free memory |
| 62 | +statistic.FooMemory.unit=memory |
| 63 | +statistic.FooMemory.calculator=average |
| 64 | +statistic.FooMemory.first.match=.*BEGIN foo().* |
| 65 | +statistic.FooMemory.second.match=.*END foo().* |
| 66 | + |
| 67 | + |
| 68 | +# Reported time to process post |
| 69 | +statistic.TimeToPost.description=Last Time to process post reported by system |
| 70 | +statistic.TimeToPost.calculator=simple |
| 71 | +statistic.TimeToPost.first.match=.*Time to process post=.* |
| 72 | +statistic.TimeToPost.first.scrape=.*post={0} |
| 73 | + |
| 74 | +# Time post logged |
| 75 | +statistic.PostTime.description=Post time |
| 76 | +statistic.PostTime.unit=time |
| 77 | +statistic.PostTime.calculator=simple |
| 78 | +statistic.PostTime.first.match=.*Time to process post=.* |
| 79 | + |
| 80 | +# Free memory post logged |
| 81 | +statistic.PostFreeMem.description=Post memory |
| 82 | +statistic.PostFreeMem.unit=memory |
| 83 | +statistic.PostFreeMem.calculator=simple |
| 84 | +statistic.PostFreeMem.first.match=.*Time to process post=.* |
| 85 | + |
| 86 | + |
| 87 | +# Max reported Time to process post |
| 88 | +statistic.MaxTimeToPost.description=Maximum Time to process post reported by system |
| 89 | +statistic.MaxTimeToPost.calculator=max |
| 90 | +statistic.MaxTimeToPost.first.match=.*Time to process post=.* |
| 91 | +statistic.MaxTimeToPost.first.scrape=.*post={0} |
| 92 | + |
| 93 | +# Min reported Time to process post |
| 94 | +statistic.MinTimeToPost.description=Minimum time to process post reported by system |
| 95 | +statistic.MinTimeToPost.calculator=min |
| 96 | +statistic.MinTimeToPost.first.match=.*Time to process post=.* |
| 97 | +statistic.MinTimeToPost.first.scrape=.*post={0} |
| 98 | + |
| 99 | +# Avg reported Time to process post |
| 100 | +statistic.AvgTimeToPost.description=Average time to process post reported by system |
| 101 | +statistic.AvgTimeToPost.calculator=average |
| 102 | +statistic.AvgTimeToPost.first.match=.*Time to process post=.* |
| 103 | +statistic.AvgTimeToPost.first.scrape=.*post={0} |
| 104 | + |
| 105 | +# User session semantics (across threads) |
| 106 | + |
| 107 | +# Method level semantics (in thread) |
| 108 | + |
| 109 | +# Business level semantics (sc |
| 110 | + |
| 111 | +# Post duration |
| 112 | +statistic.ActualTimeToPost.description=Actual time to process post |
| 113 | +statistic.ActualTimeToPost.unit=time |
| 114 | +statistic.ActualTimeToPost.threadlocal=true |
| 115 | +statistic.ActualTimeToPost.calculator=simple |
| 116 | +statistic.ActualTimeToPost.first.match=.*Star Post.* |
| 117 | +statistic.ActualTimeToPost.second.match=.*End Post.* |
| 118 | + |
| 119 | +# Alerts |
| 120 | + |
| 121 | +# User upper limit reached |
| 122 | + |
| 123 | +alert.MaxUserLimit.description=Maximum Number of users reached |
| 124 | +alert.MaxUserLimit.statistic=UserCount |
| 125 | +alert.MaxUserLimit.warn= >20 |
| 126 | +alert.MaxUserLimit.category=alerts |
| 127 | + |
| 128 | +# Error Rate |
| 129 | +alert.ErrorRateIncrease.description=ErrorRate Increase |
| 130 | +alert.ErrorRateIncrease.statistic=ErrorRate |
| 131 | +alert.ErrorRateIncrease.warn= >=15 |
| 132 | +alert.ErrorRateIncrease.critical= >=25 |
| 133 | +alert.ErrorRateIncrease.category=alerts |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
0 commit comments