[erlang-questions] Need help with folsom usage

Alexander Zhuravlev a.zhuravlev@REDACTED
Wed Jan 23 19:47:14 CET 2013


On Wed, Jan 23, 2013 at 06:42:10PM +0100, André Graf wrote:
> Hi Max
> 
> I guess you've found out how to create a meter e.g.
> folsom_metrics:new_meter({meter, my_cool_meter}).
> as a next step you update the meter e.g.
> folsom_metrics:notify({{meter, my_cool_meter}, 1}).
> and for reading out the value you would use e.g.
> folsom_metrics:get_metric_value(my_cool_meter).
> In the case of the meter, folsom internally calculates the mean rates
> and exponentially weighted moving averages of your meter that you can
> read out with the call above. That's it, if you want to have snapshots
> on your metrics you have to do that by yourself (same holds for
> graphing the data).

Yep, you can have a process which periodically (for example, once per
minute) sends a snapshot of current folsom stats values to Graphite
(http://graphite.wikidot.com/) or Riemann (http://riemann.io/).

> 
> Hope this helped
> Best,
> André
> 
> On 23 January 2013 18:27, Max Lapshin <max.lapshin@REDACTED> wrote:
> > Frankly speaking, I'm feeling myself an idiot. Folsom looks like a mature
> > and cool tool, but I don't understand how can I use it.
> >
> > For example I want to receive history of measurements: traffic was 1 Mbit/s
> > one minute ago, 3 mbits 2 minutes ago, etc..
> >
> > Also I want to take a look at graphic of average/median request times, but I
> > can't find any examples in open source.
> >
> >
> > On Wed, Jan 23, 2013 at 9:14 PM, Alexander Zhuravlev <a.zhuravlev@REDACTED>
> > wrote:
> >>
> >> On Wed, Jan 23, 2013 at 07:54:47PM +0300, Max Lapshin wrote:
> >> > Hi.
> >> >
> >> > I want to use folsom for measuring page hits: response time stats and
> >> > hit
> >> > count.
> >> >
> >> > Is there any good example of code how to fetch data from folsom and send
> >> > it
> >> > in JSON to web-page?
> >>
> >> You may want to check out https://github.com/boundary/folsom_webmachine
> >>
> >> --
> >> Alexander Zhuravlev
> >
> >
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> >
-- 
Alexander Zhuravlev



More information about the erlang-questions mailing list