monasca-agent/tests
Donagh McCabe a72f907eef Add json_plugin: simple way to post metrics to Monasca
This patch adds a plugin that reads metrics from JSON files. This
makes it very easy to integrate with Monasca -- instead of writing
a new plugin, simply write your metrics to a file.

The advantage of this mechanism is that:
- It's simple and easy to understand
- It is asynchronous with Monasca Agent. There are two technical
  advantages to this:
    - Your check does not need to run at same frequency as
      the agent.
    - If your check blocks, this does not affect other checks
      in the agent because the agent is not blocked.
- You can create the metrics as a side effect of doing other
  stuff. For example, a server process can write the JSON
  file while it is processing requests. With the normal plugin
  architecture, you need to write code that talks to your
  server process to access the metrics.
- You can write the check code in any language.

Change-Id: I1e998fa677e16cc04d46edd46d0e6433131825e7
2016-12-09 14:04:02 +00:00
..
checks_d Add json_plugin: simple way to post metrics to Monasca 2016-12-09 14:04:02 +00:00
detection Add json_plugin: simple way to post metrics to Monasca 2016-12-09 14:04:02 +00:00
__init__.py Renaming agent packages to reflect monasca 2014-12-19 09:22:03 -07:00
common.py Refactor process test 2016-05-24 16:20:07 +00:00
README.md Converted the agent config file to yaml to match the plugin config files 2015-03-02 18:36:15 -07:00
test_aggregator.py Validate valueMeta for measurement 2016-03-10 09:53:22 -07:00
test_config.py Adds config-file arg option 2016-10-11 19:41:04 +03:00
test_keystone.py Updating unit tests 2015-08-20 15:04:00 -06:00
test_metrics.py Adding unit tests 2016-08-09 15:13:20 -06:00
test_modify_config.py HttpCheck can't detect changes if only change search_pattern 2016-09-13 10:55:44 -06:00
test_process.py Fixes process checker using older psutil versions 2016-10-11 19:42:05 +03:00
test_service_plugin.py TrivialFix: Using assertEqual instead of assertEquals 2016-09-28 14:10:08 +07:00
test-agent.yaml Fixed default process metrics. 2015-08-24 13:06:35 -06:00

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.