0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Keep metrics of http request
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
>= 0

Runtime

= 1.0.0.beta4
 Project Readme

Em-Http-Metrics

Keeps some data of http request.

Em-Http-Metrics is a middleware for em-http-request.

Values are kept in RAM, but you can handle it, to do some math, or export it, to use an other tool to find som meaning in all this numbers.

Use it

Metrics class handle all the values. The middleware is easy to use : you can use it on a specific connection, or globaly.

m = Metrics::Metrics.new
EM::HttpRequest.use EventMachine::Middleware::Metrics, m

Do some requests.

You can export it as a CSV :

require "em-http-metrics/csv"

puts m.to_csv.string

Licence

LGPL.