Commit Graph

33 Commits

Author SHA1 Message Date
Stefano Canepa a8a2bb845b Removed dependency on supervisor
To support python3 in the near future this was done:

* Removed dependency on supervisor.
* Added template configuration for systemd target that includes all
  services.
* Added templates configuration for systemd service for every single
  service.
* Changed monasca_setup to use the new templates.

In the meanwhile code was formated to cope with pep8 settings and some
other small changes were done to comply with pycodestyle and
pydocstring.

Task: 4126
Story: 2000975

Depends-On: https://review.openstack.org/#/c/566475/

Change-Id: I0d0c4ea41a830581d6b9f247fad6a2dda1f96cbe
2018-06-27 11:28:43 +02:00
Ryan Bak 8bc8db6495 Check status on agent stop and wait if not stopped
Waits up to 10 seconds for shutdowns to complete before returning.
Helps ensure restarts will actually start.
Allows us to remove the old 1 second sleep between start and stop,
which was not always necessary and not always enough.

Change-Id: I45c30cf2ffa29a77ee30b2b20b87519f32ee0b61
2016-12-13 14:57:51 -07:00
Shinya Kawabata c29232a263 Fix typo
Change-Id: I420f443efe9aa6d3b09f261def20df3209c321c6
2015-09-24 16:00:56 +09: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
Michael James Hoppal 89bce3f4a1 Always restart monasca agent even on clean exit
Change-Id: I956f6cf8758b5340f11c4a00617dbf9eff455f99
2015-05-01 13:23:34 -06:00
Tim Kuhlman 5f5c77847d Added a systemd service provider
Change-Id: I2e98f120bd937131b739778f5737f068976a0a14
2015-04-21 15:05:46 -06:00
Tim Kuhlman 48b1c4bc5f Changes to enable an install via a virtual env
Change-Id: Iec80c1871aab744b86e747a5b2d3df1ebaa4be5e
2015-04-20 09:54:13 -06:00
Tim Kuhlman 5ac0feaead Added a sleep between stop/start to allow stop to fully complete
Change-Id: I9071e880cf98565dd801db8806177d0f1593b03f
2015-03-10 11:03:05 -06: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
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 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
gary-hessler fde221f5db Fixing psutil version issue.
Bump Version

Change-Id: I6b93c85832632335a96d59912e2db795b0d90812
2014-07-29 15:10:16 -06:00
gary-hessler a60555cf32 Rename package to monasca-agent.
Change-Id: I713954bdb7ae1cacb98d0ed43bb90be6f1099964
2014-07-18 13:48:38 -06:00
David Schroeder 101fe92c70 supervisord missing correct path on boot 2014-07-08 12:46:40 -06:00
gary-hessler e86e1dc43a Added new OpenStack services 2014-07-02 13:44:01 -06:00
David Schroeder 41ba189053 Run supervisord as the mon-agent user, not root 2014-05-28 15:37:57 -06:00
gary-hessler 8a6386d5ac Integrating python-monclient into agent 2014-05-16 16:23:11 -06:00
Tim Kuhlman 06dbf96434 Configured setup.py so it will work for installing 2014-05-12 14:02:35 -06:00
Tim Kuhlman af384111c4 Renamed dogstatsd->monstatsd 2014-05-07 16:07:03 -06:00
Tim Kuhlman e59533aa2a Fixes for the odd pathing done with a deb install 2014-05-07 13:17:43 -06:00
Tim Kuhlman 3f92626c2e Fixes for running/building 2014-05-06 17:01:46 -06:00
Tim Kuhlman 033d040de1 JAH-127 reorganized components to acheive a clearer seperation 2014-05-02 15:06:54 -06:00
Tim Kuhlman b960baa599 Minor fix to make what is happening in package install a bit more clear. 2014-04-30 09:35:29 -06:00
Tim Kuhlman 33d6481721 Fixes following the initial rebranding. 2014-04-29 17:05:22 -06:00
Tim Kuhlman 16e9642e73 Initial remove of datadog branding, rpm support and moved mapping file location. 2014-04-29 16:42:32 -06:00
Tim Kuhlman a24527b7e9 Finished very initial move from custom emitter to a full transactional emitter 2014-04-28 15:21:13 -06:00
Tim Kuhlman 76518a3757 Working deb build. 2014-04-28 12:16:42 -06:00
Tim Kuhlman 050c206a69 Changes to make the forwarder work. 2014-04-28 09:02:05 -06:00
Tim Kuhlman c99db289a9 Ripped out the datadog remote bits of the forwarder.
Pup was holding on tight with its teeth so it came also.
2014-04-25 16:49:04 -06:00
Tim Kuhlman e4bb04ef38 Removed embeded collections library. 2014-04-25 14:43:30 -06:00
Tim Kuhlman 558370353f collector only sends metrics to the forwarder, pulled out ganglia 2014-04-25 14:28:14 -06:00
Tim Kuhlman f3275ae606 Pulled out unused bits, move pup to standalone 2014-04-25 12:31:07 -06:00
Tim Kuhlman 587802517d Initial relocation of deb creation scripts. monagent should be a python module 2014-04-25 08:17:20 -06:00