<div dir="ltr">Ok, got it.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 10:47 PM, Alexander Zhuravlev <span dir="ltr"><<a href="mailto:a.zhuravlev@gmail.com" target="_blank">a.zhuravlev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Jan 23, 2013 at 06:42:10PM +0100, André Graf wrote:<br>
> Hi Max<br>
><br>
> I guess you've found out how to create a meter e.g.<br>
> folsom_metrics:new_meter({meter, my_cool_meter}).<br>
> as a next step you update the meter e.g.<br>
> folsom_metrics:notify({{meter, my_cool_meter}, 1}).<br>
> and for reading out the value you would use e.g.<br>
> folsom_metrics:get_metric_value(my_cool_meter).<br>
> In the case of the meter, folsom internally calculates the mean rates<br>
> and exponentially weighted moving averages of your meter that you can<br>
> read out with the call above. That's it, if you want to have snapshots<br>
> on your metrics you have to do that by yourself (same holds for<br>
> graphing the data).<br>
<br>
</div>Yep, you can have a process which periodically (for example, once per<br>
minute) sends a snapshot of current folsom stats values to Graphite<br>
(<a href="http://graphite.wikidot.com/" target="_blank">http://graphite.wikidot.com/</a>) or Riemann (<a href="http://riemann.io/" target="_blank">http://riemann.io/</a>).<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Hope this helped<br>
> Best,<br>
> André<br>
><br>
> On 23 January 2013 18:27, Max Lapshin <<a href="mailto:max.lapshin@gmail.com">max.lapshin@gmail.com</a>> wrote:<br>
> > Frankly speaking, I'm feeling myself an idiot. Folsom looks like a mature<br>
> > and cool tool, but I don't understand how can I use it.<br>
> ><br>
> > For example I want to receive history of measurements: traffic was 1 Mbit/s<br>
> > one minute ago, 3 mbits 2 minutes ago, etc..<br>
> ><br>
> > Also I want to take a look at graphic of average/median request times, but I<br>
> > can't find any examples in open source.<br>
> ><br>
> ><br>
> > On Wed, Jan 23, 2013 at 9:14 PM, Alexander Zhuravlev <<a href="mailto:a.zhuravlev@gmail.com">a.zhuravlev@gmail.com</a>><br>
> > wrote:<br>
> >><br>
> >> On Wed, Jan 23, 2013 at 07:54:47PM +0300, Max Lapshin wrote:<br>
> >> > Hi.<br>
> >> ><br>
> >> > I want to use folsom for measuring page hits: response time stats and<br>
> >> > hit<br>
> >> > count.<br>
> >> ><br>
> >> > Is there any good example of code how to fetch data from folsom and send<br>
> >> > it<br>
> >> > in JSON to web-page?<br>
> >><br>
> >> You may want to check out <a href="https://github.com/boundary/folsom_webmachine" target="_blank">https://github.com/boundary/folsom_webmachine</a><br>
> >><br>
> >> --<br>
> >> Alexander Zhuravlev<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > erlang-questions mailing list<br>
> > <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
> ><br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Alexander Zhuravlev<br>
</font></span></blockquote></div><br></div>