Make detail process checking default and set up process checks by user By default now when we set up a process check it will grab all the detailed metrics for that process not just if it is running or not. Set up a process check for the monasca agent. Also added some process checks by user instead of by search string. This gives us the ability to watch all processes owned by a certain user and aggregate the process metrics that go along with it. Removed context switch metrics from detailed process collection. Change-Id: I7dd310a435f5cd2e9fc53ba1f3ed03e9cc079ed1
Tests for the mon agent.
Run with nosestests -w tests
For many tests to work an agent.yaml must be in either /etc/monasca/agent/agent.yaml or in the working directory.
Many tests require specific applications enabled in order for the test to run, these are skipped by default. See https://nose.readthedocs.org/en/latest/plugins/skip.html for details.