diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-12-31 10:53:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-31 10:53:40 +0100 |
commit | 31dc2e9761ab404b13655aa174cff726dc63d03a (patch) | |
tree | b88892376e136f5632ae6531208b41d9d2ea0b5a | |
parent | 53c2ce5b8dcb6bbcc9c9a342e7c6bbff3bcc41c8 (diff) |
fix IEC units in bash modules (#5049)
-rw-r--r-- | collectors/charts.d.plugin/mysql/mysql.chart.sh | 4 | ||||
-rw-r--r-- | collectors/charts.d.plugin/tomcat/tomcat.chart.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/collectors/charts.d.plugin/mysql/mysql.chart.sh b/collectors/charts.d.plugin/mysql/mysql.chart.sh index 8f692e67c7..e1207dc9af 100644 --- a/collectors/charts.d.plugin/mysql/mysql.chart.sh +++ b/collectors/charts.d.plugin/mysql/mysql.chart.sh @@ -221,7 +221,7 @@ DIMENSION Innodb_buffer_pool_pages_flushed flushed incremental -1 1 DIMENSION Innodb_buffer_pool_pages_misc misc absolute -1 1 DIMENSION Innodb_buffer_pool_pages_total total absolute 1 1 -CHART mysql_$x.innodb_buffer_pool_bytes '' "mysql InnoDB Buffer Pool Bytes" "MB" innodb mysql.innodb_buffer_pool_bytes area $((mysql_priority + 21)) $mysql_update_every +CHART mysql_$x.innodb_buffer_pool_bytes '' "mysql InnoDB Buffer Pool Bytes" "MiB" innodb mysql.innodb_buffer_pool_bytes area $((mysql_priority + 21)) $mysql_update_every DIMENSION Innodb_buffer_pool_bytes_data data absolute 1 $((1024 * 1024)) DIMENSION Innodb_buffer_pool_bytes_dirty dirty absolute -1 $((1024 * 1024)) @@ -247,7 +247,7 @@ DIMENSION Qcache_not_cached 'not cached' incremental -1 1 CHART mysql_$x.qcache '' "mysql QCache Queries in Cache" "queries" qcache mysql.qcache line $((mysql_priority + 26)) $mysql_update_every DIMENSION Qcache_queries_in_cache queries absolute 1 1 -CHART mysql_$x.qcache_freemem '' "mysql QCache Free Memory" "MB" qcache mysql.qcache_freemem area $((mysql_priority + 27)) $mysql_update_every +CHART mysql_$x.qcache_freemem '' "mysql QCache Free Memory" "MiB" qcache mysql.qcache_freemem area $((mysql_priority + 27)) $mysql_update_every DIMENSION Qcache_free_memory free absolute 1 $((1024 * 1024)) CHART mysql_$x.qcache_memblocks '' "mysql QCache Memory Blocks" "blocks" qcache mysql.qcache_memblocks line $((mysql_priority + 28)) $mysql_update_every diff --git a/collectors/charts.d.plugin/tomcat/tomcat.chart.sh b/collectors/charts.d.plugin/tomcat/tomcat.chart.sh index 8babc8b0f6..9ca75e63e3 100644 --- a/collectors/charts.d.plugin/tomcat/tomcat.chart.sh +++ b/collectors/charts.d.plugin/tomcat/tomcat.chart.sh @@ -32,8 +32,8 @@ tomcat_priority=60000 # will be in the proper units tomcat_decimal_detail=1000000 -# used by volume chart to convert bytes to KB -tomcat_decimal_KB_detail=1000 +# used by volume chart to convert bytes to kB +tomcat_decimal_kB_detail=1000 tomcat_check() { @@ -109,8 +109,8 @@ tomcat_create() { cat <<EOF CHART tomcat.accesses '' "tomcat requests" "requests/s" statistics tomcat.accesses area $((tomcat_priority + 8)) $tomcat_update_every DIMENSION accesses '' incremental -CHART tomcat.volume '' "tomcat volume" "KB/s" volume tomcat.volume area $((tomcat_priority + 5)) $tomcat_update_every -DIMENSION volume '' incremental divisor ${tomcat_decimal_KB_detail} +CHART tomcat.volume '' "tomcat volume" "kB/s" volume tomcat.volume area $((tomcat_priority + 5)) $tomcat_update_every +DIMENSION volume '' incremental divisor ${tomcat_decimal_kB_detail} CHART tomcat.threads '' "tomcat threads" "current threads" statistics tomcat.threads line $((tomcat_priority + 6)) $tomcat_update_every DIMENSION current '' absolute 1 DIMENSION busy '' absolute 1 |