mardi 7 février 2017

Aggregating Counts per min using graphite functions with codahale counter data

Vote count: 0

Our ecosystem right now is graphite/grafana and we use the codahale metrics java library I define a counter

requestCounter = registry.counter(MetricNamespaces.REQUEST_COUNT);

and increment on every request hit to our app

requestCounter.inc();

What we observerd with codahale is that, the counter s a cumalative value... When we look at the raw data in grafana, it is an increasing value over a period of time

What functions do I use in graphite so that I can get request count per min

I tried this

alias(summarize(perSecond(sumSeries(app.request.count.*)), 
'1m', 'sum',     false), 'Request Count')

and also this

hitcount(perSecond(app.request.count.*), '1m')

It doesn't seem right, Can someone please advice what is the recommended way and also if we can have codahale send just the raw data when incremented instead of a cumalative count

asked 35 secs ago

Let's block ads! (Why?)



Aggregating Counts per min using graphite functions with codahale counter data

Aucun commentaire:

Enregistrer un commentaire