3 **Python plugin support is experimental and implementation may change in the future**
5 Currently every plugin must be written in python3.
6 All third party libraries should be installed system-wide or in `python_modules` directory.
7 Module configurations are written in YAML and **pyYAML is required**.
9 Every configuration file must have one of two formats:
10 1. Configuration for only one job:
12 update_every : 2 # update frequency
13 retries : 1 # how many failures in update() is tolerated
14 priority : 20000 # where it is shown on dashboard
16 other_var1 : bla # variables passed to module
19 2. Configuration for many jobs (ex. mysql):
27 update_every : 5 # job update frequency
28 retries : 2 # job retries
29 other_var1 : some_val # module specific variable
32 priority : 5 # job position on dashboard
33 retries : 20 # job retries
34 other_var2 : val # module specific variable
37 `update_every`, `retries`, and `priority` are always optional.
40 The following python.d plugins are supported:
44 The plugin will monitor one or more mysql servers
47 * python module [MySQLdb](https://github.com/PyMySQL/mysqlclient-python) (faster) or [PyMySQL](https://github.com/PyMySQL/PyMySQL) (slower)
49 It will produce following charts (if data is available):
51 1. **Bandwidth** in kbps
55 2. **Queries** in queries/sec
60 3. **Operations** in operations/sec
77 4. **Table Locks** in locks/sec
81 5. **Select Issues** in issues/sec
88 6. **Sort Issues** in issues/sec
95 You can provide, per server, the following:
97 1. a name, anything you like, but keep it short
98 2. username which have access to database (deafults to 'root')
99 3. password (defaults to none)
100 4. mysql my.cnf configuration file
101 5. mysql socket (optional)
102 6. mysql host (ip or hostname)
103 7. mysql port (defaults to 3306)
105 Here is an example for 3 servers:
113 'my.cnf' : '/etc/mysql/my.cnf'
118 password : 'blablablabla'
119 socket : '/var/run/mysqld/mysqld.sock'
130 If no configuration is given, the plugin will attempt to connect to mysql server via unix socket at `/var/run/mysqld/mysqld.sock` without password and with username `root`