-
Notifications
You must be signed in to change notification settings - Fork 3
/
pinba_reports.sql
70 lines (62 loc) · 2.49 KB
/
pinba_reports.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
create database pinba_reports;
use pinba_reports;
create table report_by_group (
tag_value varchar(64) default null,
req_count int(11) default null,
req_per_sec float default null,
hit_count int(11) default null,
hit_per_sec float default null,
timer_value float default null,
timer_median float default null,
index_value varchar(256) default null
) engine=pinba default charset=latin1 comment='tag_info:group';
create table report_by_group_operation (
group_value varchar(64) default null,
operation_value varchar(64) default null,
req_count int(11) default null,
req_per_sec float default null,
hit_count int(11) default null,
hit_per_sec float default null,
timer_value float default null,
timer_median float default null,
index_value varchar(256) default null
) engine=pinba default charset=latin1 comment='tag2_info:group,operation';
create table report_by_group_operation_script (
script_name varchar(128) default null,
group_value varchar(64) default null,
operation_value varchar(64) default null,
req_count int(11) default null,
req_per_sec float default null,
hit_count int(11) default null,
hit_per_sec float default null,
timer_value float default null,
timer_median float default null,
index_value varchar(256) default null
) engine=pinba default charset=latin1 comment='tag2_report:group,operation';
create table report_by_group_script_host (
script_name varchar(128) default null,
tag_value varchar(64) default null,
req_count int(11) default null,
req_per_sec float default null,
hit_count int(11) default null,
hit_per_sec float default null,
timer_value float default null,
hostname varchar(32) default null,
server_name varchar(64) default null,
timer_median float default null,
index_value varchar(256) default null
) engine=pinba default charset=latin1 comment='tag_report2:group';
create table report_by_group_operation_from_to (
script_name varchar(128) default null,
group_value varchar(64) default null,
operation_value varchar(64) default null,
from_server_value varchar(64) default null,
to_server_value varchar(64) default null,
req_count int(11) default null,
req_per_sec float default null,
hit_count int(11) default null,
hit_per_sec float default null,
timer_value float default null,
timer_median float default null,
index_value varchar(256) default null
) engine=pinba default charset=latin1 comment='tagN_report:group,operation,from_server,to_server';