yaml configs
paulfantom committed
Jun 18, 2016 at 11:58 UTC
e3f6dc4bb4c23ce920b827765d3f736d7b222002
2 files changed
+16
-19
conf.d/python.d/example.conf
+1
-1
@@ -1 +1 @@
1
-update_every=2
1
+update_every : 2
conf.d/python.d/mysql.conf
+15
-18
@@ -1,21 +1,18 @@
1
# Example configuration of mysql.chart.py
2
-# Indentation is important
2
+# YAML format
3
4
-#update_every=5
4
+update_every: 5
5
6
-#config=[
7
-# {
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'
15
-# },{
16
-# 'name' : 'remote',
17
-# 'user' : 'admin',
18
-# 'password' : 'bla',
19
-# 'host' : 'example.org',
20
-# 'port' : '3306'
21
-# }]
6
+local:
7
+ 'my.cnf' : '/etc/mysql/my.cnf'
8
+
9
+local_s:
10
+ user : 'root'
11
+ password : 'blablablabla'
12
+ socket : '/var/run/mysqld/mysqld.sock'
13
+
14
+remote:
15
+ user : 'admin'
16
+ password : 'bla'
17
+ host : 'example.org'
18
+ port : '3306'