← Back to team overview

graphite-dev team mailing list archive

[Question #230748]: Graphing complex percentages

 

New question #230748 on Graphite:
https://answers.launchpad.net/graphite/+question/230748

I'd like to graph the used system memory as a percentage of total available memory.  I have collectd feeding in free, used, cached, and buffered.  For a single host I can calculate this using asPercent(app-1.memory-used, sum(app-1.memory-*)) and this works great.

I'd like to be able to do this for a large number of hosts (app-*) without having to iterate through them, however.  I experimented with divideSeries(app-*.memory-used,sum(app-*.memory-*)) but this sums all of the memory values for ALL hosts before feeding it into divideSeries().

Is there a way to do what I'm after using the built-in functions, or will I have to roll that by hand?

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