need help with combining functions

Asked by Eric Rumer

I need to figure out a way to use both groupByNode and averageSeriesWithWildcards, or something...

I have several nodes, and each node hase several CPUs, and each CPU has several metrics. Basically, I want to sum user and system, then average that accross all CPUs, then groupByNode.

Is this possible? I couldn't find a way to use a function inside of groupByNode...

Something like this, I think, but it doesn't seem to work:


Tree looks like
[HOST]->cpu->[CPU NUMBER]->cpu->[user,system,idle]->value


Question information

English Edit question
Graphite Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Leinartas (mleinartas) said :

I think this should be possible - so you want basically the average combined user+system of each system across all CPUs (one line per server) right? How about averageSeriesWithWildcards(sumSeriesWithWildcards(*.cpu.*.cpu.{user,system}.value,4),0) - that will (I think) sum up the user and system metrics for each permutation of host and cpu number, and then average those values for every host.

These functions (the *WithWildcards and groupByNode) are the most confusing available. Experiment with them a while and you should be able to get something working

Can you help with this problem?

Provide an answer of your own, or ask Eric Rumer for more information if necessary.

To post a message you must log in.