diff options
author | Ilya Mashchenko <ilyamaschenko@gmail.com> | 2018-12-17 18:50:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 18:50:20 +0300 |
commit | 97b32703c63569812ef6652d8a8ab3a75f21990d (patch) | |
tree | 46bc67e074e839a9c1ecda640487d7102d16715d /collectors/python.d.plugin/mysql/mysql.chart.py | |
parent | 7ad91b8f9a840f7d8364a78dd396524c642ec786 (diff) |
[python] make units compliant with IEC standard (#4995)
* apache units fix
* beanstalk
* bind_rndc
* boinc
* ceph
* chrony
* couchdb
* dns_query
* dnsdist
* dockerd
* dovecot
* elasticsearch by @vlvkobal <3
* example
* exim
* fail2ban
* freeradius minor fixes
* freeradius minor fixes
* freeradius minor fixes
* go_expvar
* haproxy
* hddtemp
* httpcheck
* icecast
* ipfs
* isc_dhcpd
* litespeed
* logind
* megacli
* memcached
* mongodb
* monit
* mysql
* nginx
* nginx_plus
* nsd
* ntpd
* nvidia_smi
* openldap
* ovpn_status
* phpfm
* portcheck
* postfix
* postgres
* powerdns
* proxysql
* puppet
* rabbitmq
* redis
* restroshare
* samba
* sensors
* smartdlog
* spigotmc
* springboot
* squid
* retroshare
* tomcat
* retroshare
* tor
* traefik
* traefik
* unbound
* uwsgi
* varnish
* w1sensor
* web_log
* ok codacy
* retroshare
* ipfs
Diffstat (limited to 'collectors/python.d.plugin/mysql/mysql.chart.py')
-rw-r--r-- | collectors/python.d.plugin/mysql/mysql.chart.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/collectors/python.d.plugin/mysql/mysql.chart.py b/collectors/python.d.plugin/mysql/mysql.chart.py index fab12d0799..7927d77b01 100644 --- a/collectors/python.d.plugin/mysql/mysql.chart.py +++ b/collectors/python.d.plugin/mysql/mysql.chart.py @@ -6,9 +6,6 @@ from bases.FrameworkServices.MySQLService import MySQLService -# default module values (can be overridden per job in `config`) -# update_every = 3 -priority = 60000 # query executed on MySQL server QUERY_GLOBAL = 'SHOW GLOBAL STATUS;' @@ -207,8 +204,8 @@ CHARTS = { 'net': { 'options': [None, 'mysql Bandwidth', 'kilobits/s', 'bandwidth', 'mysql.net', 'area'], 'lines': [ - ['Bytes_received', 'in', 'incremental', 8, 1024], - ['Bytes_sent', 'out', 'incremental', -8, 1024] + ['Bytes_received', 'in', 'incremental', 8, 1000], + ['Bytes_sent', 'out', 'incremental', -8, 1000] ] }, 'queries': { @@ -320,7 +317,7 @@ CHARTS = { ] }, 'innodb_io': { - 'options': [None, 'mysql InnoDB I/O Bandwidth', 'kilobytes/s', 'innodb', 'mysql.innodb_io', 'area'], + 'options': [None, 'mysql InnoDB I/O Bandwidth', 'KiB/s', 'innodb', 'mysql.innodb_io', 'area'], 'lines': [ ['Innodb_data_read', 'read', 'incremental', 1, 1024], ['Innodb_data_written', 'write', 'incremental', -1, 1024] @@ -360,7 +357,7 @@ CHARTS = { ] }, 'innodb_os_log_io': { - 'options': [None, 'mysql InnoDB OS Log Bandwidth', 'kilobytes/s', 'innodb', 'mysql.innodb_os_log_io', 'area'], + 'options': [None, 'mysql InnoDB OS Log Bandwidth', 'KiB/s', 'innodb', 'mysql.innodb_os_log_io', 'area'], 'lines': [ ['Innodb_os_log_written', 'write', 'incremental', -1, 1024], ] @@ -394,7 +391,7 @@ CHARTS = { ] }, 'innodb_buffer_pool_bytes': { - 'options': [None, 'mysql InnoDB Buffer Pool Bytes', 'MB', 'innodb', 'mysql.innodb_buffer_pool_bytes', 'area'], + 'options': [None, 'mysql InnoDB Buffer Pool Bytes', 'MiB', 'innodb', 'mysql.innodb_buffer_pool_bytes', 'area'], 'lines': [ ['Innodb_buffer_pool_bytes_data', 'data', 'absolute', 1, 1024 * 1024], ['Innodb_buffer_pool_bytes_dirty', 'dirty', 'absolute', -1, 1024 * 1024] @@ -441,7 +438,7 @@ CHARTS = { ] }, 'qcache_freemem': { - 'options': [None, 'mysql QCache Free Memory', 'MB', 'qcache', 'mysql.qcache_freemem', 'area'], + 'options': [None, 'mysql QCache Free Memory', 'MiB', 'qcache', 'mysql.qcache_freemem', 'area'], 'lines': [ ['Qcache_free_memory', 'free', 'absolute', 1, 1024 * 1024] ] @@ -529,7 +526,7 @@ CHARTS = { ] }, 'galera_bytes': { - 'options': [None, 'Replicated bytes', 'KB/s', 'galera', 'mysql.galera_bytes', 'area'], + 'options': [None, 'Replicated bytes', 'KiB/s', 'galera', 'mysql.galera_bytes', 'area'], 'lines': [ ['wsrep_received_bytes', 'rx', 'incremental', 1, 1024], ['wsrep_replicated_bytes', 'tx', 'incremental', -1, 1024], @@ -563,7 +560,11 @@ class Service(MySQLService): MySQLService.__init__(self, configuration=configuration, name=name) self.order = ORDER self.definitions = CHARTS - self.queries = dict(global_status=QUERY_GLOBAL, slave_status=QUERY_SLAVE, variables=QUERY_VARIABLES) + self.queries = dict( + global_status=QUERY_GLOBAL, + slave_status=QUERY_SLAVE, + variables=QUERY_VARIABLES, + ) def _get_data(self): |