aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/vserver.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/vserver.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/vserver.json')
-rw-r--r--plugin/vserver.json84
1 files changed, 84 insertions, 0 deletions
diff --git a/plugin/vserver.json b/plugin/vserver.json
new file mode 100644
index 0000000..7366693
--- /dev/null
+++ b/plugin/vserver.json
@@ -0,0 +1,84 @@
1{
2 "load": {
3 "title": "System load",
4 "vertical": "System load",
5 "type": "default",
6 "legend": {
7 "shortterm": {
8 "name": " 1 min",
9 "color": "00ff00"
10 },
11 "midterm": {
12 "name": " 5 min",
13 "color": "0000ff"
14 },
15 "longterm": {
16 "name": "15 min",
17 "color": "ff0000"
18 }
19 },
20 "legend_format": "%.2lf"
21 },
22 "vs_memory": {
23 "title": "Memory utilization ({{PI}})",
24 "vertical": "Bytes",
25 "type": "stacked",
26 "legend": {
27 "vm": {
28 "name": "Virtual memory pages",
29 "color": "0000ff"
30 },
31 "vml": {
32 "name": "Pages locked into memory",
33 "color": "0000ff"
34 },
35 "rss": {
36 "name": "Resident set size",
37 "color": "ffb000"
38 },
39 "anon": {
40 "name": "Anonymous memory pages",
41 "color": "ff00ff"
42 }
43 },
44 "legend_format": "%5.1lf%s"
45 },
46 "vs_threads": {
47 "title": "Threads ({{PI}})",
48 "type": "stacked",
49 "legend": {
50 "running": {
51 "name": "Running",
52 "color": "0000ff"
53 },
54 "uninterruptable": {
55 "name": "Uninterruptible",
56 "color": "ff00ff"
57 },
58 "onhold": {
59 "name": "On Hold",
60 "color": "00e000"
61 },
62 "total": {
63 "name": "Total",
64 "color": "Total"
65 }
66 },
67 "legend_format": "%5.1lf%s"
68 },
69 "if_octets": {
70 "title": "Interface Traffic ({{PI}})",
71 "vertical": "{{ND}} per second",
72 "legend_format": "%5.1lf%s",
73 "datasize": true
74 },
75 "vs_processes": {
76 "title": "Processes ({{PI}})",
77 "legend": {
78 "value": {
79 "name": "Processes"
80 }
81 },
82 "legend_format": "%5.1lf%s"
83 }
84}