30 Commits

Author SHA1 Message Date
Jenkins
462ee7a94a Merge "Added dry run mode to monasca-setup" 2015-07-16 20:48:14 +00:00
Tim Kuhlman
4514d629f3 Added dry run mode to monasca-setup
Change-Id: I5eb1c1ada8051365de0a88207230bd36c4073d3c
2015-07-14 12:52:56 -06:00
Joachim Barheine
36f3582da8 add support for (user-) domain_id/name
Closes-Bug: 1471882
Change-Id: I8574fa3d393dc7a2c9d0470cbf7b9e819a3be0cc
2015-07-08 16:09:43 +00:00
Michael James Hoppal
34386f531f Making sure ntp does not point to localhost
Change-Id: I85a9d26509dff3298024d79d388eabb110530129
2015-06-26 14:24:56 -06:00
Michael James Hoppal
cd4b36deb9 Lower default collection time from 60 seconds to 30
Change-Id: Ia75f871bdebc520995bbd73f53b921d2e42454ff
2015-06-25 13:12:15 -06:00
Tim Kuhlman
fbed9a2177 Misc doc fixes
Change-Id: Iec6fdb792fccd2e92456eba3ecc7e0b9679bc06b
2015-05-29 09:26:36 -06:00
Tim Kuhlman
7cee317a17 Change the default log level to WARN
Change-Id: I9ffe7bcece3d416b3420447bdc464e4d1cb5b5c3
2015-05-27 10:49:53 -06:00
Tim Kuhlman
7cb4c717d4 Add dimensions support to the argument based detection plugins
Change-Id: Icf930ee00c32814494911c14851c44b47648c6c0
2015-05-21 16:40:36 -06:00
Tim Kuhlman
7bdd702aad Warn when detection fails for a specificly called out plugin
Change-Id: I48f1f881a2de10046df7838d9d95d40b977e3182
2015-05-19 16:08:22 +00:00
Tim Kuhlman
24ef0598f9 Added host alive and http_check plugins and detection_args.
Change-Id: I02f525b51aeddd540472c6a8087bc2e9d6620e1a
2015-05-14 09:52:04 -06:00
Craig Bryant
b0cc0ccb14 Change the default agent user to mon-agent
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
2015-05-06 11:41:28 -06:00
Tim Kuhlman
9e6169522a Make sure the gid is detected after it is created.
Change-Id: Iafe76b17b29d33af121bbc430ceffd7ce278d8a3
2015-05-05 09:04:28 -06:00
Tim Kuhlman
1a73f3425b Modify the agent and setup to accept custom plugins
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
2015-05-04 11:37:54 -06:00
Tim Kuhlman
a3a77ba227 Updated merge that avoid duplicating named instances in a config.
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
2015-05-01 11:31:16 -06:00
Dexter Fryar
3d1dc2c6d0 Docs to describe customizations. Added readthedocs config
Built on changes from Dexter
Updated toc, added internal dimensions, general formatting

Change-Id: Ica56c43fbf98fcd99792ab91e47dccf46ec1b9aa
2015-04-28 15:03:40 -06:00
Tim Kuhlman
d1a71e06b1 Added the ability to just detect/setup a subset of plugins
Change-Id: Ied595c19fb00ce944f4757db3f4b30a9bd21f7d4
2015-04-24 14:59:56 -06:00
Tim Kuhlman
5f5c77847d Added a systemd service provider
Change-Id: I2e98f120bd937131b739778f5737f068976a0a14
2015-04-21 15:05:46 -06:00
Tim Kuhlman
2b5fc32f2b Default the agent to a 1 minute collection time.
Change-Id: I1be628ad6076069784b58224b3044ce3a23973fc
2015-03-30 10:41:43 -06:00
Dexter Fryar
1c4f93f7f1 Incorrect platform check fix
bugs.launchpad.net/monasca/+bug/1436449

Closes-Bug: #1436449

Change-Id: Ia90e6a2e51c085afcbf9c678f675a0e7306516e3
2015-03-25 16:30:49 -05:00
Tim Kuhlman
b5613c5e70 Add the --system_only option to monasca-setup.
Also stop rabbitmq from doing a partial setup with guest/guest auth

Change-Id: I15802cb17dc53d1ae1ff90a4f861dcc275406ad9
2015-03-20 14:05:29 -06:00
Tim Kuhlman
5e2236f7e7 Changes to restore python 2.6 support
Change-Id: Ibccdb49e1d922c5855df2a0864eff35984f399ef
2015-03-06 08:20:20 -07:00
Gary Hessler
f9fd9c5a30 Converted the agent config file to yaml to match the plugin config files
Converted the config file to yaml and updated the config processing logic to match.
Cleaned up some deprecated config item processing.

Change-Id: I8c5d9ad841b22d20825608ac9f2c82d8011b04f0
2015-03-02 18:36:15 -07:00
Gary Hessler
b1de7db1f5 Removing subprocess call from system metrics classes
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
2015-02-25 10:58:43 -07:00
Tim Kuhlman
721b013d11 Various fixes to make it easier to run in diverse environments
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
2015-02-20 16:47:31 -07:00
gary-hessler
51b4f9b221 Update all plugins to handle dimensions correctly
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
2015-02-13 16:36:46 -07:00
Tim Kuhlman
2a4e1e0080 Added swift and ntp checks and more automatic detection.
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
2015-02-12 12:07:25 -07:00
Michael James Hoppal
a8929debda Modifications to accommodate for python 2.6
Change-Id: If959b8a9c7073cbbc97a9712945754116f026c5c
2015-02-06 11:18:09 -07:00
gary-hessler
42f7c5ac16 Adding apache web server monitoring for OpenStack
Change-Id: I0c50e1d2825dd6324ef8ebd4b3a1bc32e1b2a3d5
2015-02-03 10:07:58 -07:00
gary-hessler
92c064ff28 Updated dimension processing for service and component
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
2015-01-22 10:04:43 -07:00
gary-hessler
34d82d455e Renaming agent packages to reflect monasca
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
2014-12-19 09:22:03 -07:00