Commit Graph

42 Commits

Author SHA1 Message Date
zhouxinyong 29c2fbd0c0 omit the twice occured words in collectd-aodh-plugin-35e6c312ef89746e.yaml
Change-Id: I167aed36434fe42d2fc3fdebef2acb77ab70bff4
2018-11-13 11:34:25 +08:00
Sean Mooney ce744c83eb modernize testing
- This change adds constratins support
- This change removes pretty_tox which
  failed on python 3 in favor of stestr
- This change adds py36
- This change removes the broken cover env
- This change adds libvirt-python as a test
  requirement
- This change adds a reno stub for confromance
  to the PTI.

Change-Id: I116566c317b360ea325a06a8fbd11e29688cf602
2018-08-20 12:35:24 +01:00
Emma Foley def3d3d28e Update launchpad links in release notes
Depends-On: I6a2ba35c80f9b24772771ee0b708370ebab14bdb
Change-Id: Id391783c477627b69e434ae886bd0e5e18e57e23
2018-04-18 16:38:28 +00:00
Emma Foley ebe287370a Add release note for metername update
Change-Id: Iceb0bee94243bc02693bd250bd20ba846a6c8f22
2017-09-06 08:50:18 +00:00
Helena McGough 07ae3f81ba Multi-node deployment configuration
- Automated the required configurations for the collectd.conf file
 - Enables the virt and network plugins
 - Included a MULTI_NODE_DEPLOYMENT configuration option for this change
 - This is only enabled when the libvirt.py file is not in use
 - Provided instructions on how to deploy multi-node

Change-Id: I151e318074250b94dbef247e6858c78086fcd362
2017-08-16 12:12:13 +01:00
Elizabeth Burke d256ab054a Deleting ceilometer from the repository
-remove Collectd_Ceilometer folder
-remove Ceilometer specific unit tests
-Remove mentions in devstack, doc, and etc folders
-Substitute refereces of Ceilometer with Gnocchi/Aodh

Closes-Bug: #1710855
Change-Id: I210ca8182c489c4f90a6521b1b7fd6f8a391e602
Signed-off-by: Elizabeth Burke <elizabeth.burke@intel.com>
2017-08-15 16:00:14 +00:00
Jenkins 625aa325ec Merge "Fix plugin logging" 2017-08-14 15:20:14 +00:00
Helena McGough 7ef22179fa Deprecated the libvirt meter
- Libvirt meter is only enabled if configured
 - Added deployment code
 - Included a reno
 - Updated doc/source/usage.rst
 - Updated unit tests

Change-Id: Ia4eb566e087ff341505896534296e7afd338f98b
2017-08-14 11:38:33 +00:00
Jaroslav Safka f903de3f10 Fix plugin logging
Fix logging of debug, info and warning levels.
Also configuration parameter VERBOSE is working again.

fixes problems:
* VERBOSE parameter can be changed at runtime
* Initial log level was unset, then there was nothing logged lower than
exception level. (for example configuration dump was not logged)
* Initial VERBOSE was set to True, then it was too much verbose. And
this flag was mean to be used for debugging problems.

NOTE: real log level is driven by collectd configuration, not by plugin
config.

Change-Id: Ia7048ccb74f27a5d5885b9c0bda17d6fba603e9b
Closes-Bug: #1664973
2017-07-19 09:32:41 +00:00
Helena McGough 2223d14005 Included the aodh sender class in the common one
- Combined commonalities from the aodh and common sender classes
 - Updated all of the relevant tests for each class
 - Included a reno

Change-Id: I78fcdb075661e125b0e9f16bdee626cd811ad78e
Closes-bug: #1668210
2017-06-30 12:41:49 +00:00
Helena McGough 1437e06bf1 Make alarm severity configurable
- Enabled the user to configure the severity of alarms triggered
   by metrics/meters
 - Provided/Updated documentation for this changea
 - Included all of the necessary tests for this change
 - Included a reno for this change

Change-Id: Icefe2edf7695c4a8b3d5838844e2514b9876967f
2017-06-30 10:04:57 +00:00
Helena McGough 4180fb5a76 Updated _get_alarm_state function
- Get the state of an alarm based on the severity of the collectd
   notification that is sent and not the message.
 - Added a bug fix reno for this.
 - Reduced the probability that the state will return "insufficient
   data".

Change-Id: Ic993337aa49aed1d189708f5d8cd3935e6d1bbe1
Closes-bug: #1681392
Closes-bug: #1672301
2017-06-26 17:46:37 +00:00
Helena McGough e2ce9e8ffd Added test for _update_alarm
- Provided _update_alarm and alarm_not_updated test.

Change-Id: I476fcb3503357b4dfac5ef741494032cc0fc6090
Closes-Bug: #1669814
2017-05-26 09:03:47 +00:00
Helena McGough 3b88d50820 Refactor update and create alarm functions
- Checks for errors and retries creating/updating alarms which fixes
    the bug, by removing the need to have a dictionary for alarms.
  - Included a get_alarm_id function.
  - Refactored the update and create alarm functions.
  - Updated and included the relevant tests for this.
  - Include a reno for the bug fix.

Change-Id: I7e998bc8cb55f9ef7564464fcd4eded06643e1eb
Closes-Bug: #1677597
2017-05-26 08:37:27 +00:00
Helena McGough 10658a9c87 Added a delete tool for alarms
- Provide a tool to delete alarms
  - Updated instructions for deleting alarms
  - Included a reno for this change

Change-Id: If89aeb073e0e0c09480e0838e565ee83b9f8d63e
Partial-Bug: #1672296
2017-05-17 09:44:02 +00:00
Jenkins 4f426a9fb4 Merge "Change the extension name of backup .conf files" 2017-05-05 09:49:50 +00:00
Jenkins 7382ea3314 Merge "Fixed documentation formatting" 2017-05-04 10:25:31 +00:00
Helena McGough 8d711aabf6 Fixed documentation formatting
Fixed rendering, typos and alignment

Change-Id: Ib9425fe1b94634287e45b4a225cf8d74cb8745e2
Closes-bug: #1684121
2017-05-04 10:15:39 +00:00
Helena McGough b02acc8a4f Change the extension name of backup .conf files
- Renamed the back-up's to .conf.b
  - Provided a reno for this change

Change-Id: I78d364a40515a63ecdb99fe5bd4dbb0010c28512
Closes-bug: #1684579
2017-04-27 16:33:22 +00:00
Thaynara Silva b0e2772f0a Change hostname in collectd.conf
- Add code to match collectd hostname to the system's hostname.
   - Add reno for this bug fix.

Change-Id: I4e4138addc979436de04200ffdedc5f440351116
Closes-Bug: #1680013
2017-04-19 06:40:15 +00:00
Jenkins 1bc9e27037 Merge "Add collectd_ceilometer/tests/common" 2017-04-11 12:27:33 +00:00
Emma Foley f6c00951be Add rst heading definitions
- Add licensing headers
- Add definitions for heading markup
- Update rst files to conform to the heading definitions

Change-Id: I75a9b29dbe9b3160cd682defa79ef6a02193de04
Closes-Bug: #1673530
2017-04-10 15:38:53 +00:00
Emma Foley b055b29f3e Add collectd_ceilometer/tests/common
Tests in collectd_ceilometer/tests/common were not being run.

- Added __init__.py so tests in tests/common are detected.
- Resolved errors associated with incorrect references and paths.

Change-Id: I50854588a14724cec83b6665137be565faef3133
Closes-Bug: #1681441
2017-04-10 15:24:34 +00:00
Thaynara Silva 8d6804e9db Add separate verbose config options
Add the following to allow plugin verbosity to be configured separately
  - Add COLLECTD_GNOCCHI_VERBOSE
  - Add COLLECTD_AODH_VERBOSE
  - Set both default to the same value of what
    COLLECTD_CEILOMETER_VERBOSE
  - Update documentation
  - Make changes to sample local.conf file

Change-Id: Ie072cdb42f6075860dbcb5fdab96f3f160139ec2
Closes-Bug: #1676489
2017-04-07 13:19:51 +00:00
Helena McGough 2899c9d3e5 Add deployment code for collectd-aodh-plugin
- Add code to deploy collectd-aodh-plugin with devStack.
  - Included a reno for this commit.
  - The plugin isn't enabled by default, but documentation has been
    updated to allow it's enablement.

Change-Id: I2b34b115262b92b13a6bbfb51e29802612fa0b9d
2017-03-31 15:43:45 +00:00
Jenkins 536f851533 Merge "Add code to build collectd" 2017-03-21 23:46:55 +00:00
Emma Foley 43d86ff1cd Add code to build collectd
- Add option to build collectd from source
  - Clones, builds and installs collectd under the source repo
- Add install_requirements function
- Add config options:
  - COLLECTD_INSTALL_TYPE
  - COLLECTD_REPO
  - COLLECTD_DIR
  - COLLECTD_BRANCH
  - COLLECTD_PREFIX
- Update documentation in doc/source/usage.rst
- Add service file for systemd
- Make sure the config dir is included

Partial-Bug: #1596966
Change-Id: I92156cf69438634c6340c21089538ff7ea716e6f
2017-03-21 15:34:52 +00:00
Helena McGough 1933ec8f29 Created the collectd-aodh-plugin
- Provided code that creates the collectd-aodh-plugin. Aodh alarms
    are created based on collectd notifications. Event alarms are
    created.
  - Included a .conf file for this change.
  - Added changes to the base.py file for the meters to facilitate
    this change.
  - Included a reno for this change.
  - Included tests for this change.

Change-Id: I7db01df69104aded199a8c43e8c7b433ff549763
2017-03-20 09:56:00 +00:00
Emma Foley 5bfb438f1c Load logfile.conf first to help debugging
Conf files in $COLLECTD_CONF_DIR are loaded in alphabetical order.

If there is an error loading the python plugin, the logfile plugin is not
loaded.
To help debugging, the logfile should be loaded first.

Changing logfile.conf to 01-logfile.conf should fix this issue by making
collectd load the logfile.conf first

Closes-Bug: #1657859

Change-Id: I1f748d61d6d9a291bcc32476ac17bb0d60fdc573
2017-02-08 17:38:14 +00:00
Helena McGough 5def6f9975 Updated documentation for CEILOMETER_BACKEND
- Updated devstackGSG.rst to set CEILOMETER_BACKEND
 - Added CEILOMETER_BACKEND to local.conf.minimal
 - Added a reno for this bug fix

Change-Id: Ibbf606021a1f0dcc0db6c586e092b03df423a7a5
Closes-Bug: #1655611
2017-01-13 12:38:40 +00:00
Emma Foley 2c7862cef3 Use KEYSTONE_SERVICE_URI instead of KEYSTONE_AUTH_URI
- KEYSTONE_AUTH_URI is the admin url
- Use KEYSTONE_SERVICE_URI to access keystone as a service user.

Closes-Bug: #1656063

Change-Id: I957e166931b3dea050d0cee3365250a92ae3a57f
2017-01-12 18:31:14 +00:00
Jenkins a5df9666fb Merge "Added -p flag to mkdir" 2017-01-11 14:04:47 +00:00
Jenkins e2ca9306d7 Merge "Add details on how to contribute" 2017-01-11 14:03:53 +00:00
Jenkins 336942144a Merge "Add troubleshooting guide" 2017-01-11 14:00:33 +00:00
Jenkins 2e2cec7b26 Merge "DevStack enablement of the collectd-ceilometer custom units feature" 2017-01-11 10:35:22 +00:00
Helena McGough 606902c455 DevStack enablement of the collectd-ceilometer custom units feature
- Added deployment code for custom units enablement
      - Updated the DevStack documentation to provide instructions on
        how to enable this feature
      - Editted the collectd-ceilometer-plugin.conf file to enable the
        feature
      - Added a reno for this change

Change-Id: Ia93da4abdf066ba677dcb3ee0e44388c06d97ff5
2017-01-11 10:18:08 +00:00
Emma Foley 6590b5cc21 Add details on how to contribute
Add collectd-ceilometer specific contrib information
- What needs to be included in a feature?
- How to add a reno entry

Change-Id: I91cf5af30eb0e26695dffd374f796023dd8af099
2017-01-10 13:26:17 +00:00
Helena McGough a2759bcdb1 Added -p flag to mkdir
- Add -p flag when creating configuration directory
 - Added a reno for this bug fix

Closes-Bug: #1648554
Change-Id: I8882738db03675a43911c04aa0172d7d3a55c5f1
2017-01-10 10:10:03 +00:00
Helena McGough 67061abdc0 Documented the manual enablement of custom units feature for collectd-ceilometer-plugin
- Updated the GSG.rst file with instructions on how to
    enable the feature.
  - Provided a reno for this documentation update.

Change-Id: I007e262f2676067ebd3bdc16dac0e26155a1f1e9
2017-01-10 09:55:38 +00:00
Emma Foley bf32465eb1 Add troubleshooting guide
Add a trouble shooting guide for debugging common issues in your deployment

Change-Id: I8629f2a8ddf21c57878e6b09374aa4558d89e10e
2017-01-09 13:24:33 +00:00
Jaroslav Safka 95c0d43f19 Remove Keystone V2 API support
removing keystone v2.0 api because is no longer supported

Closes-Bug: #1614892
Change-Id: Iaeabc663990168e2d6959d8fb629234ca02128d1
2016-12-16 09:27:01 +00:00
Emma Foley 4ab4f23b4d Add reno to the repo
Change-Id: If76e1055317347cf6c15f37751a5d8a83aebe959
2016-12-06 15:28:00 +00:00