move monitoring config to etc

This commit is contained in:
Alexey Lavrenuke 2015-02-04 21:23:33 +03:00
parent e1ce7b834a
commit d0b17123ab
3 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,9 @@ analytic tools for the results they produce.
], ],
}, },
data_files=[ data_files=[
('/etc/yandex-tank', ['config/00-base.ini']) ('/etc/yandex-tank', [
'config/00-base.ini',
'config/monitoring_default_config.xml'
])
] ]
) )

View File

@ -63,7 +63,7 @@ class MonitoringPlugin(AbstractPlugin):
self.monitoring = None self.monitoring = None
if self.config == 'auto': if self.config == 'auto':
self.config = os.path.dirname(__file__) + '/monitoring_default_config.xml' self.config = '/etc/yandex-tank/monitoring_default_config.xml'
try: try:
autostop = self.core.get_plugin_of_type(AutostopPlugin) autostop = self.core.get_plugin_of_type(AutostopPlugin)