simple_apm 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -1
- data/config/simple_apm.yml +1 -1
- data/lib/simple_apm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd24daac047cea581ed0cd225bb608550647c8d
|
4
|
+
data.tar.gz: f764040b48e07fd37534db07ca32706aa4478045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96975b1996ce11aa43f172b5dcc623fafb97e4cba30e3f0c2699d19cf5654ca7bd52470efe21472f59b8ad424882a2ebbc8f6b484222510949627422e7d87676
|
7
|
+
data.tar.gz: bfdaf971ad55fe4144b9c5c5f0f37d087f523804b236838fa64d02e5a895a75ef1ddf0f488435f03d54bbc478e3e51390d05cfd58a5816aec99de46d930057a8
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
- 记录慢请求的详情和对应SQL详情(多余的会删掉)
|
9
9
|
- 以10分钟为刻度记录平均/最慢访问时间、次数等性能指标,并生成图表
|
10
10
|
- 记录请求中外部http访问时间
|
11
|
-
|
11
|
+
|
12
12
|
|
13
13
|
## 原理
|
14
14
|
|
@@ -21,6 +21,26 @@
|
|
21
21
|
获取内存信息用到了gem: [get_process_mem](https://github.com/schneems/get_process_mem),经测试在linux系统耗时在1ms以下
|
22
22
|
|
23
23
|
|
24
|
+
## 功能截图
|
25
|
+
- Dashboard
|
26
|
+
![Dashboard](public/dashboard.jpg)
|
27
|
+
|
28
|
+
- 慢请求列表
|
29
|
+
![Slow Requests](public/slow_requests.png)
|
30
|
+
|
31
|
+
- Action列表
|
32
|
+
![Action List](public/action_list.png)
|
33
|
+
|
34
|
+
- 请求详情
|
35
|
+
![Request Info](public/request_info.png)
|
36
|
+
|
37
|
+
- Action概况
|
38
|
+
![Action Info](public/action_info.png)
|
39
|
+
|
40
|
+
- 数据管理
|
41
|
+
![Data](public/data-manage.png)
|
42
|
+
|
43
|
+
|
24
44
|
## Usage
|
25
45
|
|
26
46
|
```ruby
|
data/config/simple_apm.yml
CHANGED
@@ -10,7 +10,7 @@ action_slow_request_limit:
|
|
10
10
|
# 项目名,默认为 'app',区分项目名可以多个项目数据存于一台redis server上
|
11
11
|
app_name:
|
12
12
|
# 记录SQL的最低时间(单位:秒),小于指定数值的则不记录
|
13
|
-
sql_critical_time:
|
13
|
+
sql_critical_time: 0.1
|
14
14
|
# 不统计的请求(值为:xxxController#Action)(数组)
|
15
15
|
# - Devise::SessionsController#create
|
16
16
|
exclude_actions:
|
data/lib/simple_apm/version.rb
CHANGED