package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Mar 27, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
mysql
Module mysql monitors one or more MySQL servers.
It will produce following charts (if data is available):
- Bandwidth in kilobits/s
- Queries in queries/sec
- queries
- questions
- slow queries
- Queries By Type in queries/s
- select
- delete
- update
- insert
- cache hits
- replace
- Handlerse in handlers/s
- commit
- delete
- prepare
- read first
- read key
- read next
- read prev
- read rnd
- read rnd next
- rollback
- savepoint
- savepoint rollback
- update
- write
- Table Locks in locks/s
- Table Select Join Issuess in joins/s
- full join
- full range join
- range
- range check
- scan
- Table Sort Issuess in joins/s
- Tmp Operations in created/s
- Connections in connections/s
- Connections Active in connections/s
- Binlog Cache in threads
- Threads in transactions/s
- Threads Creation Rate in threads/s
- Threads Cache Misses in misses
- InnoDB I/O Bandwidth in KiB/s
- InnoDB I/O Operations in operations/s
- InnoDB Pending I/O Operations in operations/s
- InnoDB Log Operations in operations/s
- waits
- write requests
- writes
- InnoDB OS Log Pending Operations in operations
- InnoDB OS Log Operations in operations/s
- InnoDB OS Log Bandwidth in KiB/s
- InnoDB Current Row Locks in operations
- InnoDB Row Operations in operations/s
- inserted
- read
- updated
- deleted
- InnoDB Buffer Pool Pagess in pages
- data
- dirty
- free
- misc
- total
- InnoDB Buffer Pool Flush Pages Requests in requests/s
- InnoDB Buffer Pool Bytes in MiB
- InnoDB Buffer Pool Operations in operations/s
- QCache Operations in queries/s
- hits
- lowmem prunes
- inserts
- no caches
- QCache Queries in Cache in queries
- QCache Free Memory in MiB
- QCache Memory Blocks in blocks
- MyISAM Key Cache Blocks in blocks
- MyISAM Key Cache Requests in requests/s
- MyISAM Key Cache Requests in requests/s
- MyISAM Key Cache Disk Operations in operations/s
- Open Files in files
- Opened Files Rate in files/s
- Binlog Statement Cache in statements/s
- Connection Errors in errors/s
- accept
- internal
- max
- peer addr
- select
- tcpwrap
- Slave Behind Seconds in seconds
- I/O / SQL Thread Running State in bool
- Replicated Writesets in writesets/s
- Replicated Bytes in KiB/s
- Galera Queue in writesets
- Replication Conflicts in transactions
- Flow Control in ms
configuration
DSN syntax in details.
jobs:
- name: local
dsn: [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN]
# username:password@protocol(address)/dbname?param=value
# user:password@/dbname
# Examples:
# - name: local
# dsn: user:pass@unix(/usr/local/var/mysql/mysql.sock)/
# - name: remote
# dsn: user:pass5@localhost/mydb?charset=utf8
If no configuration is given, module will attempt to connect to mysql server via unix socket at:
/var/run/mysqld/mysqld.sock
without password and with username root
;
/usr/local/var/mysql/mysql.sock
without password and with username root
;
localhost:3306
without password and with username root
.
Documentation
¶
Charts is an alias for module.Charts
Dims is an alias for module.Dims
MySQL is the mysql database module.
New creates and returns a new empty MySQL module.
func (m *MySQL) Cleanup()
Cleanup performs cleanup.
Collect collects health checks and metrics for MySQL.
Init makes initialization of the MySQL mod.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.