← Back to team overview

graphite-dev team mailing list archive

Re: [Question #119934]: Aggregating metrics ?

 

Question #119934 on Graphite changed:
https://answers.launchpad.net/graphite/+question/119934

    Status: Open => Answered

Matthew Kemp proposed the following answer:
Graphite does not have this functionality built in. The two general
approaches to solving this are:

1. Create some sort of aggregation program/scripts that buckets metrics
over your time interval and then does the appropriate math at the end of
each interval.

2. Include the machine name in the name of the metric. This will allow
each machine to report on it's own stats. Then you can use the sum
function and wildcards to produce the aggregate metric. For example if
your metric is now foo.bar change it to <machine>.foo.bar or
foo.bar.<machine>. Then use sum(*.foo.bar) or sum(foo.bar.*) to see the
total foo.bar.

Personally I prefer option two as it provides more granular data to dig
into potential problems however it requires much more space.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.