Added 1 additional cpu core metrics and 2 rollup disk metrics.
Added a configuration parameter to the disk plugin configuration
to enable/disable the aggregated disk metrics. Also added additional
documentation to the README file to reflect how to add dimensions
to a plugin instance.
Change-Id: I7e73f7103afa1e3e366769d56eb91233f5513726
The value_meta parameter was recently added to the
monasca-api. This allows the addition of meta-information
to be sent with any metrics that are sent from the agent.
value_meta was added for the http_status, nagios_wrapper,
and host_alive checks in the agent. Also, consolidated
some of the duplicate exception handling and reformatted
some code blocks.
Change-Id: I3d9e9a8e54cd2582bde47c7c128a3788b821c156
Converted the config file to yaml and updated the config processing logic to match.
Cleaned up some deprecated config item processing.
Change-Id: I8c5d9ad841b22d20825608ac9f2c82d8011b04f0
Changed the IO, Disk and Network classes to not use a subprocess.
They now use psutil to get the metrics. Also, changed the linux
system metrics classes to subclass the AgentCheck class instead
of the old-style Check class. Added additional configuration
and changed monasca-setup to support that. Fixed some Python
2.6 incompatible string formatting issues.
Change-Id: I1f8b65bf48e48e2c598aa4950c194fbae2f9e337
The dimension handling was incorrect. It now follows this order of precedence:
1) Dimensions defined in a plugin config file
2) Dimensions that are defined in the agent config file
3) Dimensions that are defaults in a particular plugin
Also, updated imports to meet the OpenStack standards.
Change-Id: I99d82f2b534ca7b3bea8a147c83404505177e15e
The section on the Libvirt plugin was unclear about how tenant
delegation needs to be set up, so hopefully this change makes
it a bit easier to understand.
Change-Id: I97a319d440c7b22d03829dfc50e2961fd6763f31
Renamed monagent package to monasca_agent and monsetup package to monasca_setup.
Also, renamed the monstatsd agent package to statsd to more closely match the internal
collector and forwarder packages.
Change-Id: I0649ae4341fe325007e2a8d37161d330e4c95d72
Add monasca-setup's new 'amplifier' parameter to the README, and fix
a few minor spacing issues in monasca-setup's --help output.
Change-Id: I5b7a0399ed7b15e7f0a302cf42e200fe080efb70
The metric names and dimensions were not consistent throughout the
monasca-agent. Updated the documentation to match.
Change-Id: Id281c049a6e5d175df0f31823dd23021fbac56b4
This patch gives the Monasca Agent the ability to monitor virtual
machines (VMs) provisioned under Nova. It bundles Ceilometer's
virtualization inspector to gather the actual metrics, includes a
monasca-setup plugin, and adds cross-tenant support. The latter
enables the Agent to submit metrics on behalf of a different
tenant/project, giving the VM's owner a set of metrics without each
VM having to run its own Agent. This plugin collects two sets of
measurements per metric: one for the VM's owner (in-cloud) and for
the Operations team (infrastructure). They differ in the following
ways:
- Operations metric names are prefixed with "vm." in order to group VM
and overcloud metrics separately
- Operations metrics include "tenant_id" as a dimension
- Operations metrics include "cloud_tier" dimension with the value
"overcloud"
- The "hostname" dimension for Operations contains the name of the
compute server; for the tenant, "hostname" is the name of the VM
The metrics gathered by this plugin include:
- Disk I/O: read/write operations/bytes per second
- Disk I/O: errors per second
- Network I/O: in/out packets/bytes per second
- CPU utilization as a percentage of CPU time over polling time
Change-Id: I23781a1ba552ef2551e6ff1caea21dd8f515d73d