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/memcached.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/memcached.json | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/plugin/memcached.json b/plugin/memcached.json new file mode 100644 index 0000000..0e7e0fd --- /dev/null +++ b/plugin/memcached.json | |||
| @@ -0,0 +1,134 @@ | |||
| 1 | { | ||
| 2 | "df": { | ||
| 3 | "title": "Memcached Memory Usage", | ||
| 4 | "vertical": "Bytes", | ||
| 5 | "type": "stacked", | ||
| 6 | "legend": { | ||
| 7 | "free": { | ||
| 8 | "name": "Free", | ||
| 9 | "color": "00ff00" | ||
| 10 | }, | ||
| 11 | "used": { | ||
| 12 | "name": "Used", | ||
| 13 | "color": "ff0000" | ||
| 14 | } | ||
| 15 | }, | ||
| 16 | "legend_format": "%5.1lf%s" | ||
| 17 | }, | ||
| 18 | "memcached_command": { | ||
| 19 | "title": "Memcached Commands", | ||
| 20 | "vertical": "Commands", | ||
| 21 | "type": "stacked", | ||
| 22 | "legend": { | ||
| 23 | "flush": { | ||
| 24 | "name": "Flush", | ||
| 25 | "color": "00e000" | ||
| 26 | }, | ||
| 27 | "get": { | ||
| 28 | "name": "Get", | ||
| 29 | "color": "0000ff" | ||
| 30 | }, | ||
| 31 | "set": { | ||
| 32 | "name": "Set", | ||
| 33 | "color": "ffb000" | ||
| 34 | } | ||
| 35 | }, | ||
| 36 | "legend_format": "%5.1lf%s" | ||
| 37 | }, | ||
| 38 | "memcached_connections": { | ||
| 39 | "title": "Memcached Number of Connections", | ||
| 40 | "vertical": "Connections", | ||
| 41 | "legend": { | ||
| 42 | "value": { | ||
| 43 | "name": "Connections", | ||
| 44 | "color": "00b000" | ||
| 45 | } | ||
| 46 | }, | ||
| 47 | "legend_format": "%5.1lf%s" | ||
| 48 | }, | ||
| 49 | "memcached_items": { | ||
| 50 | "title": "Number of Items in Memcached", | ||
| 51 | "vertical": "Items", | ||
| 52 | "legend": { | ||
| 53 | "value": { | ||
| 54 | "name": "Items", | ||
| 55 | "color": "00b000" | ||
| 56 | } | ||
| 57 | }, | ||
| 58 | "legend_format": "%5.1lf%s" | ||
| 59 | }, | ||
| 60 | "memcached_octets": { | ||
| 61 | "title": "Memcached Network Traffic", | ||
| 62 | "vertical": "{{ND}}", | ||
| 63 | "type": "io", | ||
| 64 | "legend": { | ||
| 65 | "rx": { | ||
| 66 | "name": "Receive", | ||
| 67 | "color": "0000ff" | ||
| 68 | }, | ||
| 69 | "tx": { | ||
| 70 | "name": "Transmit", | ||
| 71 | "color": "00b000" | ||
| 72 | } | ||
| 73 | }, | ||
| 74 | "legend_format": "%5.1lf%s", | ||
| 75 | "datasize": true | ||
| 76 | }, | ||
| 77 | "memcached_ops": { | ||
| 78 | "title": "Memcached Operations", | ||
| 79 | "vertical": "Commands", | ||
| 80 | "type": "stacked", | ||
| 81 | "legend": { | ||
| 82 | "evictions": { | ||
| 83 | "name": "Evictions", | ||
| 84 | "color": "00e000" | ||
| 85 | }, | ||
| 86 | "hits": { | ||
| 87 | "name": "Hits", | ||
| 88 | "color": "0000ff" | ||
| 89 | }, | ||
| 90 | "misses": { | ||
| 91 | "name": "Misses", | ||
| 92 | "color": "ffb000" | ||
| 93 | } | ||
| 94 | }, | ||
| 95 | "legend_format": "%5.1lf%s" | ||
| 96 | }, | ||
| 97 | "percent": { | ||
| 98 | "title": "Memcached Hit Ratio", | ||
| 99 | "vertical": "Percent", | ||
| 100 | "legend": { | ||
| 101 | "value": { | ||
| 102 | "name": "Percent", | ||
| 103 | "color": "00e000" | ||
| 104 | } | ||
| 105 | }, | ||
| 106 | "legend_format": "%5.1lf%s" | ||
| 107 | }, | ||
| 108 | "ps_count": { | ||
| 109 | "title": "Memcached number of Threads", | ||
| 110 | "vertical": "Threads", | ||
| 111 | "legend": { | ||
| 112 | "value": { | ||
| 113 | "name": "Threads", | ||
| 114 | "color": "00b000" | ||
| 115 | } | ||
| 116 | }, | ||
| 117 | "legend_format": "%5.1lf%s" | ||
| 118 | }, | ||
| 119 | "ps_cputime": { | ||
| 120 | "title": "CPU Time consumed by Memcached", | ||
| 121 | "vertical": "CPU Time", | ||
| 122 | "legend": { | ||
| 123 | "user": { | ||
| 124 | "name": "User", | ||
| 125 | "color": "00e000" | ||
| 126 | }, | ||
| 127 | "syst": { | ||
| 128 | "name": "System", | ||
| 129 | "color": "0000ff" | ||
| 130 | } | ||
| 131 | }, | ||
| 132 | "legend_format": "%5.1lf%s" | ||
| 133 | } | ||
| 134 | } | ||
