diff options
| author | Pim van den Berg | 2010-09-14 20:30:19 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2010-09-14 20:38:35 +0200 |
| commit | 2d01bef2b5404cf52739c5f3b450ed70da79ab8a (patch) | |
| tree | fe993b13ce2f15bea48c6f33fe35ac89e2880792 /plugin/memcached.php | |
| parent | plugin: add memcached plugin (diff) | |
| download | apt-panopticon_cgp-2d01bef2b5404cf52739c5f3b450ed70da79ab8a.zip apt-panopticon_cgp-2d01bef2b5404cf52739c5f3b450ed70da79ab8a.tar.gz apt-panopticon_cgp-2d01bef2b5404cf52739c5f3b450ed70da79ab8a.tar.bz2 apt-panopticon_cgp-2d01bef2b5404cf52739c5f3b450ed70da79ab8a.tar.xz | |
plugin/memcached: better alignment of graph legend
Diffstat (limited to '')
| -rw-r--r-- | plugin/memcached.php | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/plugin/memcached.php b/plugin/memcached.php index 0236635..b8dff28 100644 --- a/plugin/memcached.php +++ b/plugin/memcached.php | |||
| @@ -29,13 +29,12 @@ switch($_GET['t']) { | |||
| 29 | $obj->data_sources = array('used', 'free'); | 29 | $obj->data_sources = array('used', 'free'); |
| 30 | $obj->order = array('used', 'free'); | 30 | $obj->order = array('used', 'free'); |
| 31 | $obj->ds_names = array( | 31 | $obj->ds_names = array( |
| 32 | 'used' => 'Used ', | 32 | 'used' => 'Used', |
| 33 | 'free' => 'Free ', | 33 | 'free' => 'Free', |
| 34 | ); | 34 | ); |
| 35 | $obj->colors = array( | 35 | $obj->colors = array( |
| 36 | 'used' => '00e000', | 36 | 'used' => '00e000', |
| 37 | 'free' => '0000ff', | 37 | 'free' => '0000ff', |
| 38 | |||
| 39 | ); | 38 | ); |
| 40 | $obj->rrd_title = 'Memcached Memory Usage'; | 39 | $obj->rrd_title = 'Memcached Memory Usage'; |
| 41 | $obj->rrd_vertical = 'bytes'; | 40 | $obj->rrd_vertical = 'bytes'; |
| @@ -47,9 +46,9 @@ switch($_GET['t']) { | |||
| 47 | $obj = new Type_GenericStacked($CONFIG); | 46 | $obj = new Type_GenericStacked($CONFIG); |
| 48 | $obj->order = array('flush', 'get', 'set'); | 47 | $obj->order = array('flush', 'get', 'set'); |
| 49 | $obj->ds_names = array( | 48 | $obj->ds_names = array( |
| 50 | 'flush' => 'Flush ', | 49 | 'flush' => 'Flush', |
| 51 | 'get' => 'Get ', | 50 | 'get' => 'Get ', |
| 52 | 'set' => 'Set ', | 51 | 'set' => 'Set ', |
| 53 | ); | 52 | ); |
| 54 | $obj->colors = array( | 53 | $obj->colors = array( |
| 55 | 'flush' => '00e000', | 54 | 'flush' => '00e000', |
| @@ -66,11 +65,10 @@ switch($_GET['t']) { | |||
| 66 | $obj = new Type_Default($CONFIG); | 65 | $obj = new Type_Default($CONFIG); |
| 67 | $obj->data_sources = array('value'); | 66 | $obj->data_sources = array('value'); |
| 68 | $obj->ds_names = array( | 67 | $obj->ds_names = array( |
| 69 | 'value ' => 'Connections', | 68 | 'value' => 'Connections', |
| 70 | ); | 69 | ); |
| 71 | $obj->colors = array( | 70 | $obj->colors = array( |
| 72 | 'percent' => '00b000', | 71 | 'percent' => '00b000', |
| 73 | |||
| 74 | ); | 72 | ); |
| 75 | $obj->rrd_title = 'Memcached Number of Connections'; | 73 | $obj->rrd_title = 'Memcached Number of Connections'; |
| 76 | $obj->rrd_vertical = 'Connections'; | 74 | $obj->rrd_vertical = 'Connections'; |
| @@ -98,8 +96,8 @@ switch($_GET['t']) { | |||
| 98 | $obj->data_sources = array('rx', 'tx'); | 96 | $obj->data_sources = array('rx', 'tx'); |
| 99 | $obj->order = array('rx', 'tx'); | 97 | $obj->order = array('rx', 'tx'); |
| 100 | $obj->ds_names = array( | 98 | $obj->ds_names = array( |
| 101 | 'rx' => 'Receive', | 99 | 'rx' => 'Receive ', |
| 102 | 'tx' => 'Transmit ', | 100 | 'tx' => 'Transmit', |
| 103 | ); | 101 | ); |
| 104 | $obj->colors = array( | 102 | $obj->colors = array( |
| 105 | 'rx' => '0000ff', | 103 | 'rx' => '0000ff', |
| @@ -114,9 +112,9 @@ switch($_GET['t']) { | |||
| 114 | $obj = new Type_GenericStacked($CONFIG); | 112 | $obj = new Type_GenericStacked($CONFIG); |
| 115 | $obj->order = array('evictions', 'hits', 'misses'); | 113 | $obj->order = array('evictions', 'hits', 'misses'); |
| 116 | $obj->ds_names = array( | 114 | $obj->ds_names = array( |
| 117 | 'evictions' => 'Evictions ', | 115 | 'evictions' => 'Evictions', |
| 118 | 'hits' => 'Hits ', | 116 | 'hits' => 'Hits ', |
| 119 | 'misses' => 'Misses ', | 117 | 'misses' => 'Misses ', |
| 120 | ); | 118 | ); |
| 121 | $obj->colors = array( | 119 | $obj->colors = array( |
| 122 | 'evictions' => '00e000', | 120 | 'evictions' => '00e000', |
| @@ -137,7 +135,6 @@ switch($_GET['t']) { | |||
| 137 | ); | 135 | ); |
| 138 | $obj->colors = array( | 136 | $obj->colors = array( |
| 139 | 'percent' => '00e000', | 137 | 'percent' => '00e000', |
| 140 | |||
| 141 | ); | 138 | ); |
| 142 | $obj->rrd_title = 'Memcached Hits/Gets Ratio'; | 139 | $obj->rrd_title = 'Memcached Hits/Gets Ratio'; |
| 143 | $obj->rrd_vertical = 'Percent'; | 140 | $obj->rrd_vertical = 'Percent'; |
| @@ -147,13 +144,11 @@ switch($_GET['t']) { | |||
| 147 | require_once 'type/Default.class.php'; | 144 | require_once 'type/Default.class.php'; |
| 148 | $obj = new Type_Default($CONFIG); | 145 | $obj = new Type_Default($CONFIG); |
| 149 | $obj->data_sources = array('threads'); | 146 | $obj->data_sources = array('threads'); |
| 150 | $obj->order = array( 'threads'); | 147 | $obj->order = array('threads'); |
| 151 | $obj->ds_names = array( | 148 | $obj->ds_names = array( |
| 152 | 149 | 'threads' => 'Threads', | |
| 153 | 'threads' => 'Threads ', | ||
| 154 | ); | 150 | ); |
| 155 | $obj->colors = array( | 151 | $obj->colors = array( |
| 156 | |||
| 157 | 'threads' => '00b000', | 152 | 'threads' => '00b000', |
| 158 | ); | 153 | ); |
| 159 | $obj->rrd_title = 'Memcached number of Threads'; | 154 | $obj->rrd_title = 'Memcached number of Threads'; |
| @@ -165,15 +160,14 @@ switch($_GET['t']) { | |||
| 165 | require_once 'type/Default.class.php'; | 160 | require_once 'type/Default.class.php'; |
| 166 | $obj = new Type_Default($CONFIG); | 161 | $obj = new Type_Default($CONFIG); |
| 167 | $obj->data_sources = array('user', 'syst'); | 162 | $obj->data_sources = array('user', 'syst'); |
| 168 | $obj->order = array( 'user', 'syst'); | 163 | $obj->order = array('user', 'syst'); |
| 169 | $obj->ds_names = array( | 164 | $obj->ds_names = array( |
| 170 | 'user' => 'User ', | 165 | 'user' => 'User ', |
| 171 | 'syst' => 'System ', | 166 | 'syst' => 'System', |
| 172 | ); | 167 | ); |
| 173 | $obj->colors = array( | 168 | $obj->colors = array( |
| 174 | 'user' => '00e000', | 169 | 'user' => '00e000', |
| 175 | 'syst' => '0000ff', | 170 | 'syst' => '0000ff', |
| 176 | |||
| 177 | ); | 171 | ); |
| 178 | $obj->rrd_title = 'CPU Time consumed by the memcached process'; | 172 | $obj->rrd_title = 'CPU Time consumed by the memcached process'; |
| 179 | $obj->rrd_vertical = 'Time'; | 173 | $obj->rrd_vertical = 'Time'; |
