Alexey Lavrenuke
53660d859c
Merge pull request #165 from nnugumanov/master
...
bugfix for previous pull 163
2015-07-22 17:44:08 +03:00
Alexey Lavrenuke
65b9a3ebb9
Merge pull request #164 from netortik/master
...
Monitoring plugin metrics CpuLa and CpuStat refactoring
2015-07-22 17:43:13 +03:00
Nurlan Nugumanov
883713b3d1
if there are no access to targets or monitoring.config=none, then MonitoringPlugin.MonitoringCollector() doesn't exist
2015-07-22 17:32:52 +03:00
netortik
98d4cda848
removed 'with'-construction in order to support python <2.7
2015-07-22 17:20:13 +03:00
netortik
23a740023d
Monitoring plugin metrics CpuLa and CpuStat refactoring
2015-07-22 15:52:49 +03:00
Nurlan Nugumanov
b60befab86
Fixed bug with excessive amount of send_data collected from agents
...
agent starts collecting date in prepare_test() stage. If for some reasons, start_test() has been delayed, agent's pipe collects unnecessary data.
And when start_test() occures, MonitoringCollector.poll prints huge blocks, thanks to debug print "Data after filtering .."
Fix: there is nothing to be done with agent - it doesn't know test status, when it was started etc.
So the only option is to compare timestamps from agent's data with time when start_test() has been occured and therefore
1) reduce debug output
2) send to datastorage only needed data
2015-07-22 13:45:51 +03:00
Alexey Lavrenuke
f48c487ac0
log exceptions in pythonic way
2015-03-17 15:17:10 +03:00
Alexey Lavrenuke
d0f8f4264b
logging bugs in agent
2015-03-17 15:09:23 +03:00
Alexey Lavrenuke
afed810f97
change logger in mon agent
2015-03-17 14:58:36 +03:00
Alexey Lavrenuke
1e0ca516ff
change logger in monitoring plugin
2015-03-17 14:56:38 +03:00
Andrew Grigorev
5947b910ad
Fix monitoring config
...
Allow monitoring config to contain XML body as well as file name.
Added test.
2015-02-17 02:16:13 +03:00
Andrew Grigorev
a4537eb8fd
fix get_host_config args, add test
2015-02-16 14:10:11 +03:00
Andrew Grigorev
0b519dc339
Fix Monitoring.collector
...
The xml.etree.ElementTree.find/findall method don't need the root element in path.
2015-02-14 19:30:43 +03:00
Andrew Grigorev
dc902a82a2
plugins.Monitoring.collector pythonization
2015-02-13 00:10:22 +03:00
Andrew Grigorev
e80da71693
Replace lxml with xml from standard lib, fix #132
...
The lxml library is used there only for config file parsing, it is real overhead
to install optimized C library for that.
2015-02-12 23:11:25 +03:00
Alexey Lavrenuke
a3ad499c34
move plugins config files to into python modules and use pkg_resources
2015-02-06 16:35:16 +03:00
Alexey Lavrenuke
5ce87acb0f
config is in subfolder
2015-02-05 15:13:46 +03:00
Alexey Lavrenuke
0d4b53d21b
* add ez_setup
...
* move all configs to /etc/yandextank
2015-02-05 14:46:45 +03:00
Alexey Lavrenuke
d0b17123ab
move monitoring config to etc
2015-02-04 21:23:33 +03:00
Alexey Lavrenuke
2660478dd2
migrate to new plugin import code
2015-02-04 20:42:56 +03:00
Alexey Lavrenuke
e55d1dfc27
cosmetics
2015-02-04 19:52:49 +03:00
Alexey Lavrenuke
a22aea7ab2
Monitoring plugin to separate directory
2015-02-04 15:01:36 +03:00