| 1 |
# The form of each line in this file should be as follows: |
| 2 |
# |
| 3 |
# output_template (frequency) = method input_pattern |
| 4 |
# |
| 5 |
# This will capture any received metrics that match 'input_pattern' |
| 6 |
# for calculating an aggregate metric. The calculation will occur |
| 7 |
# every 'frequency' seconds and the 'method' can specify 'sum' or |
| 8 |
# 'avg'. The name of the aggregate metric will be derived from |
| 9 |
# 'output_template' filling in any captured fields from 'input_pattern'. |
| 10 |
# |
| 11 |
# For example, if you're metric naming scheme is: |
| 12 |
# |
| 13 |
# <env>.applications.<app>.<server>.<metric> |
| 14 |
# |
| 15 |
# You could configure some aggregations like so: |
| 16 |
# |
| 17 |
# <env>.applications.<app>.all.requests (60) = sum <env>.applications.<app>.*.requests |
| 18 |
# <env>.applications.<app>.all.latency (60) = avg <env>.applications.<app>.*.latency |
| 19 |
# |
| 20 |
# As an example, if the following metrics are received: |
| 21 |
# |
| 22 |
# prod.applications.apache.www01.requests |
| 23 |
# prod.applications.apache.www01.requests |
| 24 |
# |
| 25 |
# They would all go into the same aggregation buffer and after 60 seconds the |
| 26 |
# aggregate metric 'prod.applications.apache.all.requests' would be calculated |
| 27 |
# by summing their values. |
| 28 |
# |
| 29 |
# Template components such as <env> will match everything up to the next dot. |
| 30 |
# To match metric multiple components including the dots, use <<metric>> in the |
| 31 |
# input template: |
| 32 |
# |
| 33 |
# <env>.applications.<app>.all.<app_metric> (60) = sum <env>.applications.<app>.*.<<app_metric>> |
| 34 |
# |
| 35 |
# It is also possible to use regular expressions. Following the example above |
| 36 |
# when using: |
| 37 |
# |
| 38 |
# <env>.applications.<app>.<domain>.requests (60) = sum <env>.applications.<app>.<domain>\d{2}.requests |
| 39 |
# |
| 40 |
# You will end up with 'prod.applications.apache.www.requests' instead of |
| 41 |
# 'prod.applications.apache.all.requests'. |
| 42 |
# |
| 43 |
# Note that any time this file is modified, it will be re-read automatically. |
| 44 |
# |
| 45 |
# The following aggregation methods are available as defined in lib/carbon/aggregator/rules.py |
| 46 |
# |
| 47 |
# 'sum': sum, |
| 48 |
# 'avg': avg, |
| 49 |
# 'min': min, |
| 50 |
# 'max': max, |
| 51 |
# 'p50': percentile(0.50), |
| 52 |
# 'p75': percentile(0.75), |
| 53 |
# 'p80': percentile(0.80), |
| 54 |
# 'p90': percentile(0.90), |
| 55 |
# 'p95': percentile(0.95), |
| 56 |
# 'p99': percentile(0.99), |
| 57 |
# 'p999': percentile(0.999), |
| 58 |
# 'count': count, |
| 59 |
# |