monasca-agent/monasca_setup
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
..
detection Add json_plugin: simple way to post metrics to Monasca 2016-12-09 14:04:02 +00:00
service Centos and RedHat added as supported distributions 2016-02-15 16:46:05 +01:00
__init__.py Renaming agent packages to reflect monasca 2014-12-19 09:22:03 -07:00
agent_config.py Replace yaml.load() with yaml.safe_load() 2016-10-17 15:59:48 -06:00
main.py Merge "process.py detection plugin that accepts JSON string or YAML config" 2016-11-14 12:50:54 +00:00
README.md Allow a comma separated list of hosts for host_alive detection plugin 2015-07-24 14:11:13 -06:00
utils.py Merge "add --skip_detection_plugins arg. for skipping listed detection plugins" 2016-06-24 20:30:00 +00:00

monasca-setup

This script will detect running services and configure monasca-agent to watch them as well as starting the agent and configuring it to start up on boot.

Future Considerations

  • A config file with metadata to assist in automatic configuration could be quite valuable, for example user/pass for logging into mysql.