I'm trying to use Graphite to compute a CTR for all my resources, so I tried recording my data like this:
- ctr.resource_id.clicks
- ctr.resource_id.reach
So first, I made my query :
&target= averageSeries(divideSeries(ctr.176983011340976128.clicks,ctr.176983011340976128.reach),divideSeries(ctr.190348137012011008.clicks,ctr.190348137012011008.reach))
My problem here is that I don't want to send all my resource ids to graphite, so I tried :
&target= averageSeries(divideSeries(ctr.*.clicks,ctr.*.reach))
But yeah, as the documentation says "ValueError: divideSeries second argument must reference exactly 1 series".
I tried an alternative architecture :
- ctr.clicks.resource_id
- ctr.reach.resource_id
But same problem…
I'm new with Graphite, so if anyone has a solution, it will be amazing!
Edit:
Just saw the function groupByNode, trying to use it…