-
Notifications
You must be signed in to change notification settings - Fork 31
Aggregator and Auto-Submit? #94
Comments
Hi @seichner, They do: (https://github.com/librato/python-librato/blob/master/librato/queue.py#L47). Doc: https://github.com/librato/python-librato#client-side-aggregation and Let me know if that is not what you were looking for. |
@drio if i understand the python code correctly, the only way to use the aggregator and the queue together is by calling within please have a look at our thumbor addon, that is going to provide librato-metrics support. within that code, how would you implement the auto-submission? |
@phoet Yes, you are right. We'll have to make some tweaks to accommodate what you are trying to do. I'll take a look to the addon and get back to you with solutions. |
awesome, thx! |
Here is what we can do. You want to have a timer within your system that periodically
Something similar to what we are doing in this ruby example. |
I think what we want is this https://github.com/librato/librato-metrics/blob/master/lib/librato/metrics/aggregator.rb#L32 |
I am working on porting that over. Stay tuned. |
Cool, Thanks a lot @drio ! |
We have to put this on hold until we finish the process of consolidating features across the librato bindings. I was looking at the option in the ruby bindings that you suggested and I don't think that is what you need. The flushing happens only when the # of seconds have passed and a new measurement is In the meantime we work on all this, here is an example (in ruby) that you can use as a reference to implement what you need at user level. |
@drio Thanks for your investigation - just to clarify our use case: checking the interval on every .add, like the Ruby version does, is completely fine for us. We are running Thumbor with quite a huge amount of requests. I think this will always be the case for people using the Aggregator, as it's purpose is to reduce the number of requests to Librato. It usually will not be used on a low-traffic site where the .add dependency would be a problem. |
Hello! If i read the code (Aggregator, Queue) correctly, i cannot have Aggregators submit their data automatically, right?
So either i use an auto-submitting queue OR i use an aggregator?
The Ruby-Lib seems to handle this differently, Aggregator supports an autosubmit_interval-option.
The text was updated successfully, but these errors were encountered: