diff options
| author | Pim van den Berg | 2014-05-03 19:17:16 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2014-05-12 21:32:24 +0200 |
| commit | 0a547add2f4cc264380d2dab2c472efe5a1d7094 (patch) | |
| tree | 55bb43a3e31c5814848d61eea92c8438e4a37886 /plugin/libvirt.json | |
| parent | type/base: set default title to "Plugin Type (PluginInstance) (Category)" (diff) | |
| download | apt-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 '')
| -rw-r--r-- | plugin/libvirt.json | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/plugin/libvirt.json b/plugin/libvirt.json new file mode 100644 index 0000000..9329a8a --- /dev/null +++ b/plugin/libvirt.json | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | { | ||
| 2 | "disk_octets": { | ||
| 3 | "title": "Disk Traffic ({{TI}})", | ||
| 4 | "vertical": "Bytes per second", | ||
| 5 | "type": "io", | ||
| 6 | "legend": { | ||
| 7 | "read": { | ||
| 8 | "name": "Read", | ||
| 9 | "color": "0000ff" | ||
| 10 | }, | ||
| 11 | "write": { | ||
| 12 | "name": "Write", | ||
| 13 | "color": "00b000" | ||
| 14 | } | ||
| 15 | }, | ||
| 16 | "legend_format": "%5.1lf%s" | ||
| 17 | }, | ||
| 18 | "disk_ops": { | ||
| 19 | "title": "Disk Operations ({{TI}})", | ||
| 20 | "vertical": "Ops per second", | ||
| 21 | "type": "io", | ||
| 22 | "legend": { | ||
| 23 | "read": { | ||
| 24 | "name": "Read", | ||
| 25 | "color": "0000ff" | ||
| 26 | }, | ||
| 27 | "write": { | ||
| 28 | "name": "Write", | ||
| 29 | "color": "00b000" | ||
| 30 | } | ||
| 31 | }, | ||
| 32 | "legend_format": "%5.1lf%s" | ||
| 33 | }, | ||
| 34 | "if_dropped": { | ||
| 35 | "title": "Interface Packets Dropped ({{TI}})", | ||
| 36 | "vertical": "Packets/s", | ||
| 37 | "type": "io", | ||
| 38 | "legend": { | ||
| 39 | "rx": { | ||
| 40 | "name": "Receive", | ||
| 41 | "color": "0000ff" | ||
| 42 | }, | ||
| 43 | "tx": { | ||
| 44 | "name": "Transmit", | ||
| 45 | "color": "00b000" | ||
| 46 | } | ||
| 47 | }, | ||
| 48 | "legend_format": "%5.1lf%s" | ||
| 49 | }, | ||
| 50 | "if_errors": { | ||
| 51 | "title": "Interface Errors ({{TI}})", | ||
| 52 | "vertical": "Errors/s", | ||
| 53 | "type": "io", | ||
| 54 | "legend": { | ||
| 55 | "rx": { | ||
| 56 | "name": "Receive", | ||
| 57 | "color": "0000ff" | ||
| 58 | }, | ||
| 59 | "tx": { | ||
| 60 | "name": "Transmit", | ||
| 61 | "color": "00b000" | ||
| 62 | } | ||
| 63 | }, | ||
| 64 | "legend_format": "%5.1lf%s" | ||
| 65 | }, | ||
| 66 | "if_octets": { | ||
| 67 | "title": "Interface Traffic ({{TI}})", | ||
| 68 | "vertical": "{{ND}} per second", | ||
| 69 | "type": "io", | ||
| 70 | "legend": { | ||
| 71 | "rx": { | ||
| 72 | "name": "Receive", | ||
| 73 | "color": "0000ff" | ||
| 74 | }, | ||
| 75 | "tx": { | ||
| 76 | "name": "Transmit", | ||
| 77 | "color": "00b000" | ||
| 78 | } | ||
| 79 | }, | ||
| 80 | "legend_format": "%5.1lf%s", | ||
| 81 | "datasize": true | ||
| 82 | }, | ||
| 83 | "if_packets": { | ||
| 84 | "title": "Interface Packets ({{TI}})", | ||
| 85 | "vertical": "Packets per second", | ||
| 86 | "type": "io", | ||
| 87 | "legend": { | ||
| 88 | "rx": { | ||
| 89 | "name": "Receive", | ||
| 90 | "color": "0000ff" | ||
| 91 | }, | ||
| 92 | "tx": { | ||
| 93 | "name": "Transmit", | ||
| 94 | "color": "00b000" | ||
| 95 | } | ||
| 96 | }, | ||
| 97 | "legend_format": "%5.1lf%s" | ||
| 98 | }, | ||
| 99 | "virt_cpu_total": { | ||
| 100 | "title": "CPU usage", | ||
| 101 | "vertical": "CPU time", | ||
| 102 | "legend": { | ||
| 103 | "value": { | ||
| 104 | "name": "CPU time", | ||
| 105 | "color": "0000ff" | ||
| 106 | } | ||
| 107 | }, | ||
| 108 | "legend_format": "%5.1lf" | ||
| 109 | }, | ||
| 110 | "virt_vcpu": { | ||
| 111 | "title": "vCPU usage", | ||
| 112 | "vertical": "vCPU time", | ||
| 113 | "legend_format": "%5.1lf" | ||
| 114 | } | ||
| 115 | } | ||
