Graphite movingAverage amount hitcount

I am trying to make a graphical chart with movingAverage

sum

hitcount

several different indicators. This goal:

sum(hitcount(stats.ambrosia.flows.*.*.messages.success,"1minutes"))

      

works nicely:

Rendered Graphite Chart

I would expect movingAverage

this goal:

movingAverage(sum(hitcount(stats.ambrosia.flows.*.*.messages.success,"1minutes")),15)

      

will work well too:

Invalid Graphite Chart

However, I get an awful "No Data" image. The JSON format output does not provide useful information in this case, unfortunately it just returns []

.

How can I calculate the moving average of a specified amount in Graphite? I tried the following too:

sum(hitcount(movingAverage(stats.ambrosia.flows.*.*.messages.success,15),"1minutes"))

      

Thank you for your help!

+3


source to share


1 answer


Not sure which graphical version you are using, but following me works in my environment (indented for reading):



movingAverage(
  summarize(
    sumSeries(stats.counters.*.app.elasticFacade.periodUsage.reads.*.count),
    "1minutes"
  ),
  15
)

      

+1


source







All Articles