SimpleApm

基于Redis的简单的Web请求性能监控/慢事务追踪工具

以天为维度记录:

  • 最慢的500个(默认500)请求
  • 记录每个action最慢的20次请求
  • 记录每个action的平均访问时间
  • 记录慢请求的详情和对应SQL详情(多余的会删掉)
  • 以10分钟为刻度记录平均/最慢访问时间、次数等性能指标,并生成图表

Usage

# routes.rb
mount SimpleApm::Engine => "/apm"

# 或运行 
rails generate simple_apm:install 

Installation

Add this line to your application's Gemfile:

gem 'simple_apm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_apm

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.