Changed some places to templates to make it possible to change agent
user using monasca_setup. There is one place that it is still
hard coded
The deb creation now uses a hardcoded mon-agent user instead of
monasca-agent
Change-Id: I8f2ee8903289d74c0397ccf911701c89e7a1b691
For the agent I just modified to the config to use the new standard location for custom checks.
For monasca-setup I added automatic plugin detection.
Fixed config compare so order changes don't register as a config change.
Change-Id: I7ab17c894bb0496e30d7f5aa5a1b1cf9684bdf87
Skip config writing and restart if there are no changes to the config.
Added names to various config instances to aid in repeat runs of setup.
Change-Id: Idd29f8abe29b4889868a9044116cbdcdfdba6262
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
Removed all the lsb helper utils from the sysv init script
Added a better error message for template missing.
Added the ability to skip the definition of the monasca_api_url
Made check frequency configurable and added an option to monasca setup
Also set the forwarder flush interval to be calculated based on check
frequency.
Modified monasca-setup so it can work with non-standard paths.
Change-Id: If8916e17bf42ffb804fa6c79166149a9fd33c553
Updated the plugin code to handle the dimensions from the agent config,
the plugin config and dimensions defined in the code correctly.
Also removed the old-style plugin configuration code from several of
the plugins and added a command-line option to monasca-setup to pass
the log_level if desired instead of hard-coding it in the config.
This will make it easier to test in debug mode. Fixed an issue
with the Swift detection plugin.
Change-Id: I679457e5e1f302b0cdc87b0f0f799a42a9fa0ba4
Added a bunch of swift diagnostic commands.
Added postfix checking back in but warned when root access is not
granted.
Ported over ntp check from the datadog agent and added detection.
Moved detection plugin list out of the main of monasca-setup just so it
looks tidy.
Change-Id: I9a76d0cc009545d30df60c17f65a1db6e8329b63
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
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