0.0
No commit activity in last 3 years
No release in over 3 years
Easily capture & expose Hystrix metrics in JRuby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Build Status

Hystrix Metrics

Capture hystrix metrics from your Ruby apps

Usage

gem install hystrix_metrics

Record some metrics:

require 'hystrix_metrics/metric'

# the lambda represents the work wrapped in a Hystrix command
m = HystrixMetrics::Metric.new("api_call-#{i}", -> { true })
# Invoke the lambda inside a Hystrix command
m.execute

Spin up a metric server:

require 'hystrix_metrics/metric_server'

server = HystrixMetrics::MetricServer.new(9999, "/metrics")
server.start

You can watch the metric event stream by firing a curl at localhost:9999/metrics.