diff options
author | Pim van den Berg | 2014-05-03 18:15:12 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 19:21:36 +0200 |
commit | edae75c21a8f657dd6cc9ace9e8e844ef337a951 (patch) | |
tree | da0c2b4a1ef35a3d2d8c129925e257f6a6f7fbe3 /plugin/mysql.php | |
parent | type/base: set default values for rrd_title and rrd_format (diff) | |
download | apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.zip apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.gz apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.bz2 apt-panopticon_cgp-edae75c21a8f657dd6cc9ace9e8e844ef337a951.tar.xz |
rename ds_names and dsname to legend
This had nothing to do with an RRD data source.
Diffstat (limited to 'plugin/mysql.php')
-rw-r--r-- | plugin/mysql.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugin/mysql.php b/plugin/mysql.php index aad0131..880b8c0 100644 --- a/plugin/mysql.php +++ b/plugin/mysql.php | |||
@@ -11,7 +11,7 @@ $obj->rrd_format = '%5.1lf%s'; | |||
11 | switch($obj->args['type']) | 11 | switch($obj->args['type']) |
12 | { | 12 | { |
13 | case 'cache_result': | 13 | case 'cache_result': |
14 | $obj->ds_names = array( | 14 | $obj->legend = array( |
15 | 'qcache-not_cached' => 'Not Cached', | 15 | 'qcache-not_cached' => 'Not Cached', |
16 | 'qcache-inserts' => 'Inserts', | 16 | 'qcache-inserts' => 'Inserts', |
17 | 'qcache-hits' => 'Hits', | 17 | 'qcache-hits' => 'Hits', |
@@ -27,7 +27,7 @@ switch($obj->args['type']) | |||
27 | $obj->rrd_vertical = 'Queries/s'; | 27 | $obj->rrd_vertical = 'Queries/s'; |
28 | break; | 28 | break; |
29 | case 'cache_size': | 29 | case 'cache_size': |
30 | $obj->ds_names = array( | 30 | $obj->legend = array( |
31 | 'qcache' => 'Queries', | 31 | 'qcache' => 'Queries', |
32 | ); | 32 | ); |
33 | $obj->rrd_title = sprintf('MySQL query cache size (%s)', $obj->args['pinstance']); | 33 | $obj->rrd_title = sprintf('MySQL query cache size (%s)', $obj->args['pinstance']); |
@@ -65,7 +65,7 @@ switch($obj->args['type']) | |||
65 | break; | 65 | break; |
66 | case 'mysql_octets': | 66 | case 'mysql_octets': |
67 | $obj->data_sources = array('rx', 'tx'); | 67 | $obj->data_sources = array('rx', 'tx'); |
68 | $obj->ds_names = array( | 68 | $obj->legend = array( |
69 | 'rx' => 'Receive', | 69 | 'rx' => 'Receive', |
70 | 'tx' => 'Transmit', | 70 | 'tx' => 'Transmit', |
71 | ); | 71 | ); |
@@ -77,7 +77,7 @@ switch($obj->args['type']) | |||
77 | $obj->rrd_vertical = 'Bits per second'; | 77 | $obj->rrd_vertical = 'Bits per second'; |
78 | break; | 78 | break; |
79 | case 'threads': | 79 | case 'threads': |
80 | $obj->ds_names = array( | 80 | $obj->legend = array( |
81 | 'cached' => 'Cached', | 81 | 'cached' => 'Cached', |
82 | 'connected' => 'Connected', | 82 | 'connected' => 'Connected', |
83 | 'running' => 'Running', | 83 | 'running' => 'Running', |
@@ -91,7 +91,7 @@ switch($obj->args['type']) | |||
91 | $obj->rrd_vertical = 'Threads'; | 91 | $obj->rrd_vertical = 'Threads'; |
92 | break; | 92 | break; |
93 | case 'total_threads': | 93 | case 'total_threads': |
94 | $obj->ds_names = array( | 94 | $obj->legend = array( |
95 | 'created' => 'Created', | 95 | 'created' => 'Created', |
96 | ); | 96 | ); |
97 | $obj->rrd_title = sprintf('MySQL created threads (%s)', $obj->args['pinstance']); | 97 | $obj->rrd_title = sprintf('MySQL created threads (%s)', $obj->args['pinstance']); |
@@ -100,7 +100,7 @@ switch($obj->args['type']) | |||
100 | # mysql_qcache is removed since commit collectd-4.10.0-104-g9ae3541 | 100 | # mysql_qcache is removed since commit collectd-4.10.0-104-g9ae3541 |
101 | case 'mysql_qcache': | 101 | case 'mysql_qcache': |
102 | $obj->data_sources = array('not_cached', 'inserts', 'hits', 'lowmem_prunes', 'queries_in_cache'); | 102 | $obj->data_sources = array('not_cached', 'inserts', 'hits', 'lowmem_prunes', 'queries_in_cache'); |
103 | $obj->ds_names = array( | 103 | $obj->legend = array( |
104 | 'not_cached' => 'Not Cached', | 104 | 'not_cached' => 'Not Cached', |
105 | 'inserts' => 'Inserts', | 105 | 'inserts' => 'Inserts', |
106 | 'hits' => 'Hits', | 106 | 'hits' => 'Hits', |
@@ -120,7 +120,7 @@ switch($obj->args['type']) | |||
120 | # mysql_threads is removed since commit collectd-4.10.0-105-g6c48fca | 120 | # mysql_threads is removed since commit collectd-4.10.0-105-g6c48fca |
121 | case 'mysql_threads': | 121 | case 'mysql_threads': |
122 | $obj->data_sources = array('cached', 'connected', 'running', 'created'); | 122 | $obj->data_sources = array('cached', 'connected', 'running', 'created'); |
123 | $obj->ds_names = array( | 123 | $obj->legend = array( |
124 | 'cached' => 'Cached', | 124 | 'cached' => 'Cached', |
125 | 'connected' => 'Connected', | 125 | 'connected' => 'Connected', |
126 | 'running' => 'Running', | 126 | 'running' => 'Running', |