fix resource capture.
Added enabled flag what resource monitor will be used.
Merge pull request #515 from axsh/feature-metric-alarm

Feature metric alarm