Permalink
Browse files

Add example of aggregator output in README.

  • Loading branch information...
nextmat committed Apr 17, 2012
1 parent 5589081 commit ce94f0c50230a7f1299c761c501d0128129093ce
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -78,6 +78,10 @@ Aggregate a simple gauge metric named `response_latency`:
aggregator.add :response_latency => 90.1
aggregator.add :response_latency => 92.0
+Which would result in a gauge measurement like:
+
+ {:name => "response_latency", :count => 5, :sum => 517.8, :min => 85.0, :max => 150.2}
+
You can specify a source during aggregate construction:
aggregator = Librato::Metrics::Aggregator.new(:source => 'foobar')

0 comments on commit ce94f0c

Please sign in to comment.