aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/mysql.json
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 19:17:16 +0200
committerPim van den Berg2014-05-12 21:32:24 +0200
commit0a547add2f4cc264380d2dab2c472efe5a1d7094 (patch)
tree55bb43a3e31c5814848d61eea92c8438e4a37886 /plugin/mysql.json
parenttype/base: set default title to "Plugin Type (PluginInstance) (Category)" (diff)
downloadapt-panopticon_cgp-0a547add2f4cc264380d2dab2c472efe5a1d7094.zip
apt-panopticon_cgp-0a547add2f4cc264380d2dab2c472efe5a1d7094.tar.gz
apt-panopticon_cgp-0a547add2f4cc264380d2dab2c472efe5a1d7094.tar.bz2
apt-panopticon_cgp-0a547add2f4cc264380d2dab2c472efe5a1d7094.tar.xz
graph.php: use JSON plugins instead of including PHP plugin files
A couple of big changes here. A lot of logic moved to graph.php. The PHP plugin files have been rewritten to JSON. In these JSON files *everything* is optional. Also *NOT* having a JSON plugin file won't block you from having a graph. The JSON will just make the graphs prettier (by having a title, y-axis title, legend, colors, etc..). The Collectd types.db file is parsed and used to determine RRD content. When things are not defined in the JSON it will fallback to a default.
Diffstat (limited to 'plugin/mysql.json')
-rw-r--r--plugin/mysql.json143
1 files changed, 143 insertions, 0 deletions
diff --git a/plugin/mysql.json b/plugin/mysql.json
new file mode 100644
index 0000000..e4dd6fc
--- /dev/null
+++ b/plugin/mysql.json
@@ -0,0 +1,143 @@
1{
2 "cache_result": {
3 "title": "MySQL query cache ({{PI}})",
4 "vertical": "Queries/s",
5 "type": "stacked",
6 "legend": {
7 "qcache-not_cached": {
8 "name": "Not Cached",
9 "color": "f0a000"
10 },
11 "qcache-inserts": {
12 "name": "Inserts",
13 "color": "0000ff"
14 },
15 "qcache-hits": {
16 "name": "Hits",
17 "color": "00e000"
18 },
19 "qcache-prunes": {
20 "name": "Lowmem Prunes",
21 "color": "ff0000"
22 }
23 },
24 "legend_format": "%5.1lf%s"
25 },
26 "cache_size": {
27 "title": "MySQL query cache size ({{PI}})",
28 "vertical": "Queries in cache",
29 "type": "stacked",
30 "legend": {
31 "value": {
32 "name": "Queries"
33 }
34 },
35 "legend_format": "%5.1lf%s"
36 },
37 "mysql_commands": {
38 "title": "MySQL commands ({{PI}})",
39 "vertical": "Issues/s",
40 "type": "stacked",
41 "legend_format": "%5.1lf%s"
42 },
43 "mysql_handler": {
44 "title": "MySQL handler ({{PI}})",
45 "vertical": "Invocations",
46 "type": "stacked",
47 "legend": {
48 "commit": {
49 "color": "ff0000"
50 },
51 "delete": {
52 "color": "ff00e7"
53 },
54 "read_first": {
55 "color": "cc00ff"
56 },
57 "read_key": {
58 "color": "3200ff"
59 },
60 "read_next": {
61 "color": "0065ff"
62 },
63 "read_prev": {
64 "color": "00fff3"
65 },
66 "read_rnd": {
67 "color": "00ff65"
68 },
69 "read_rnd_next": {
70 "color": "33ff00"
71 },
72 "update": {
73 "color": "cbff00"
74 },
75 "write": {
76 "color": "ff9800"
77 },
78 "rollback": {
79 "color": "000000"
80 }
81 },
82 "legend_format": "%5.1lf%s"
83 },
84 "mysql_locks": {
85 "title": "MySQL locks ({{PI}})",
86 "vertical": "locks",
87 "legend": {
88 "immediate": {
89 "color": "ff0000"
90 },
91 "waited": {
92 "color": "00ff00"
93 }
94 },
95 "legend_format": "%5.1lf%s"
96 },
97 "mysql_octets": {
98 "title": "MySQL Traffic ({{TI}})",
99 "vertical": "Bits per second",
100 "type": "io",
101 "legend": {
102 "rx": {
103 "name": "Receive",
104 "color": "0000ff"
105 },
106 "tx": {
107 "name": "Transmit",
108 "color": "00b000"
109 }
110 },
111 "legend_format": "%5.1lf%s"
112 },
113 "threads": {
114 "title": "MySQL threads ({{PI}})",
115 "vertical": "Threads",
116 "type": "stacked",
117 "legend": {
118 "cached": {
119 "name": "Cached",
120 "color": "00e000"
121 },
122 "connected": {
123 "name": "Connected",
124 "color": "0000ff"
125 },
126 "running": {
127 "name": "Running",
128 "color": "ff0000"
129 }
130 },
131 "legend_format": "%5.1lf%s"
132 },
133 "total_threads": {
134 "title": "MySQL created threads ({{PI}})",
135 "vertical": "Created Threads",
136 "legend": {
137 "value": {
138 "name": "Created"
139 }
140 },
141 "legend_format": "%5.1lf%s"
142 }
143}