@cryptotaxi247 / netdata-1 / commits / bbece9ecd

changes in readme and sample mysql.conf

paulfantom committed Jun 14, 2016 at 21:18 UTC bbece9ecdaa1231062be12f5196bac52208cb86c
2 files changed +18 -7
conf.d/python.d/mysql.conf
+4 -1
@@ -5,7 +5,10 @@
5
6 #config=[
7 # {
8 -# 'name' : 'local',
8 +# 'name' : 'local'
9 +# 'my.cnf' : '/etc/mysql/my.cnf'
10 +# },{
11 +# 'name' : 'local_s',
12 # 'user' : 'root',
13 # 'password' : 'blablablabla',
14 # 'socket' : '/var/run/mysqld/mysqld.sock'
python.d/README.md
+14 -6
@@ -1,4 +1,8 @@
1 -Every plugin supports changing its data collection frequency by setting `update_every` variable in its configuration file.
1 +# Disclaimer
2 +
3 +Currently every plugin must be written in python3
4 +Also plugins support changing their data collection frequency by setting `update_every` variable in their configuration file.
5 +
6
7 The following python.d plugins are supported:
8
@@ -58,18 +62,22 @@ You can provide, per server, the following:
62 1. a name, anything you like, but keep it short
63 2. username which have access to database (deafults to 'root')
64 3. password (defaults to none)
61 -4. mysql socket (optional)
62 -5. mysql host (ip or hostname)
63 -3. mysql port (defaults to 3306)
65 +4. mysql my.cnf configuration file
66 +5. mysql socket (optional)
67 +6. mysql host (ip or hostname)
68 +7. mysql port (defaults to 3306)
69
65 -Here is an example for 2 servers updating data every 10 seconds
70 +Here is an example for 3 servers updating data every 10 seconds
71
72 ```js
73 update_every = 10
74
75 config=[
76 {
72 - 'name' : 'local',
77 + 'name' : 'local',
78 + 'my.cnf' : '/etc/mysql/my.cnf'
79 + },{
80 + 'name' : 'local_2',
81 'user' : 'root',
82 'password' : 'blablablabla',
83 'socket' : '/var/run/mysqld/mysqld.sock'