Add option for Incrementing Counters
Take the simple example of "number of visits on a website". Currently I need to count the total number and increment that number locally before sending it to Librato Metrics. Instead, it would be much better if I could simply say "I received 50 in the last 60 seconds", and have Librato Metrics tally up the data points. In this way if I have 50 servers all reporting separately, Librato could sum up those results for me.
I know i could use separate "sources" for the multiple source issue, but take the effect of being in a cloud-based environment where the number of servers is unbounded, and what server it hit is meaningless. At that point it's better to be able to use the "source" as something meaningful, such as what page they hit.
Another example would be if I don't know how long it's been since the last time I checked, but I know that as of now I still need to tell you about 50 page views. In both cases, I don't know how many total page views there are, but I know how many new I received since I last told you.
This feature is now available in early access. When a gauge is configured for “service-side aggregation” any measurements received with the same source value in a given period will be aggregated before we store the final result. If anyone would like to test it out prior to its official release, please let us know!
5 comments
-
Ilya S.
commented
How can I access this new feature. My main issue is that I send an increment per login, but neither gauges or counters seem to do what I want. I'm trying to simply record single events in time, but would like to be able to see per-hour, or per-day totals.
-
AdminJoseph Ruscio
(CTO, Librato)
commented
Stephen, let me know the email address on your account (you can just send an email to support@librato.com) and we'll flag your account on and send some email instructions on how to use it.
-
Stephen
commented
Hi Joseph, I am interested in this feature. Can you please explain how to configure a gauge or counter for aggregation
-
AdminJoseph Ruscio
(CTO, Librato)
commented
Darius, with our current 'gauges' you still need to report a count per-source (e.g. process or server) and then use the wildcard support in our instruments to display a sum across all of your sources. If you report two measurements from the same source, with the same timestamp, the second one will overwrite the first one.
The good news is that we actually now have support for true incremental counters in early access. With this you can create a gauge, but configure it such that multiple increments received from the same source will be aggregated rather than overwritten. If you're interested in trying this out, please let me know the email address on your account and I can flag you on.
-
Darius
commented
Isn't this already supported by using gauges?