Gaurav Bahl
Gaurav Bahl

Reputation: 118

Graphite: sumSeries function not working

I am struck in a problem:

I am sending data via command line using this command in every 1 second.

set -x; while true; do echo "System.monitoring.notification.like.1.failure $((RANDOM%1+1)) date +%s" | nc 127.0.0.1 2003; sleep 1; done

My data is going to graphite and metric is also created but still when I try to use sumSeries function on this data but its not returning me the total count as expected.

sumSeries(System.monitoring.notification.like.1.failure)     

Can you please help me with this.

Thanks

Upvotes: 2

Views: 3320

Answers (1)

deniszh
deniszh

Reputation: 794

sumSeries(System.monitoring.notification.like.1.failure) will not return total count, and that's expected. Please see its documentation:

"This will add metrics together and return the sum at each datapoint. (See integral for a sum over time)".

So, probably you're looking for integral() instead - or even more probable, summarize().

Upvotes: 5

Related Questions