graphite-project/carbon — pull request #178 by feangulo (2013-11-05 13:38:31+00:00)
Title: Aggregation rules now search for exact regular expression pattern matches

We were experiencing an issue in which p99 values were being skewed by p999 values. We had the following aggregation rules:

production.all.response_time.p99 (10) = max production.host.*.response_time.p99
production.all.response_time.p999 (10) = max production.host.*.response_time.p999

Our experience was that the aggregated p999 metric values matched the per host p999 metric values. However, the aggregated p99 metric values were considerably higher than the per host p99 metric values. In essence, the p99 and p999 metric values were being clubbed together.

With this code change, the aggregation rules will look for exact pattern matches.

- if it's p99: p99 does match, p999 doesn't match
- if it's p999: p99 doesn't match, p999 matches