From: paulfantom Date: Sat, 18 Jun 2016 09:58:43 +0000 (+0200) Subject: yaml configs X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f6dc4bb4c23ce920b827765d3f736d7b222002;p=netdata.git yaml configs --- diff --git a/conf.d/python.d/example.conf b/conf.d/python.d/example.conf index a8f26d20..c9161921 100644 --- a/conf.d/python.d/example.conf +++ b/conf.d/python.d/example.conf @@ -1 +1 @@ -update_every=2 +update_every : 2 diff --git a/conf.d/python.d/mysql.conf b/conf.d/python.d/mysql.conf index b36c60c2..d175af1e 100644 --- a/conf.d/python.d/mysql.conf +++ b/conf.d/python.d/mysql.conf @@ -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'