]> arthur.barton.de Git - netdata.git/commitdiff
yaml configs
authorpaulfantom <paulfantom@gmail.com>
Sat, 18 Jun 2016 09:58:43 +0000 (11:58 +0200)
committerpaulfantom <paulfantom@gmail.com>
Sat, 18 Jun 2016 09:58:43 +0000 (11:58 +0200)
conf.d/python.d/example.conf
conf.d/python.d/mysql.conf

index a8f26d20ed2b669cba32098e894d440c67a235d8..c916192119d790ebc1767fc78ac9f54998a83b73 100644 (file)
@@ -1 +1 @@
-update_every=2
+update_every : 2
index b36c60c2b4478a6f3d57232b00dd9c3d24cc8119..d175af1e6256119eafd9cb3f221a7702b515cee8 100644 (file)
@@ -1,21 +1,18 @@
 # Example configuration of mysql.chart.py
-# Indentation is important
+# YAML format
 
-#update_every=5
+update_every: 5
 
-#config=[
-#    {
-#        'name'     : 'local'
-#        'my.cnf'   : '/etc/mysql/my.cnf'
-#    },{
-#        'name'     : 'local_s',
-#        'user'     : 'root',
-#        'password' : 'blablablabla',
-#        'socket'   : '/var/run/mysqld/mysqld.sock'
-#    },{
-#        'name'     : 'remote',
-#        'user'     : 'admin',
-#        'password' : 'bla',
-#        'host'     : 'example.org',
-#        'port'     : '3306'
-#    }]
+local: 
+  'my.cnf' : '/etc/mysql/my.cnf'
+
+local_s:
+  user     : 'root'
+  password : 'blablablabla'
+  socket   : '/var/run/mysqld/mysqld.sock'
+
+remote:
+  user     : 'admin'
+  password : 'bla'
+  host     : 'example.org'
+  port     : '3306'