aggregation-rules.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. # Note that any time this file is modified, it will be re-read automatically.