Commit Graph

7 Commits

Author SHA1 Message Date
lijunjie 73be7a9054 Fix the misspelling of "available"
Change-Id: Ief5b3707273ad710ec6270924895d69d7a010795
2019-01-22 12:04:15 +08:00
Deirdre O'Connor 10e929deb1 changes code to pass config in sender class
- This change refactor base sender to accept
  the config option in its constructor.
- The use of singleton config in the sender classes
  has been replaced with the use of self._config
- This change updates the unit tests to reflect
  the new constructor paramaters.

Change-Id: I8458145044d76b61e51462674c8fbfc84fd02b0a
Related-bug: #1746097
2018-08-20 11:36:09 +00:00
Emma Foley c54afa1628 Add DEFAULT_ARCHIVE_POLICY config option for gnocchi
Added a DEFAULT_ARCHIVE_POLICY option to Gnocchi plugin,
The user can now configure the archive policy that the metrics
should use.

Change-Id: I445c4bc98b6431a39cf805a00b6237d8090a0b98
2018-03-14 19:03:38 +00:00
Emma Foley ec6028fc0b gnocchi: Remove archive-policy when creating metrics
Archive policy rules are created by the operator, and assign
archive policies to metrics at creation based on certain rules,
if there isn't an archive policy explicitly assigned to the
metric already.

This patch removes the explicit archive policy parameter when
creating the metrics, this means that the archive policy rules
defined by the oparator are respected.

Change-Id: I562f62e1236c7c01c79a5e465ebec103c7bb07bd
2017-10-20 12:31:40 +00:00
Emma Foley 0c08c2e2b3 Update units for new virt plugin metrics
- Rename libvirt to virt in units.py
- Add new metrics for virt/perf
  - this requires three parameters to map correctly
- Updated unit() to use an optional pltype_instance parameter
- Add unit test to test behaviour with different numbers of parameters

Change-Id: I94437aab309fa6c4d70e52e93d8858b54dcfeedb
Co-Authored-By: Mark O'Neill <mark1.oneill@intel.com>
Closes-Bug: #1714996
2017-10-19 10:04:26 +00:00
Emma Foley 51ad38a2c3 gnocchi/test_{sender,writer): Add some missing tests
A number of unittests were added to cover existing functionality.
* gnocchi/test_sender.py
  * test_send
  * test_send_error_404
  * test_on_authenticated
  * test_create_request_url
  * test_handle_http_error
  * test_handle_http_error_404
* gnocchi/test_writer.py
  * test_write
  * test_write_metric_none
  * test_send_data

Change-Id: I81f84c60761667d714a14da9ae8a80fdf59de461
2017-10-19 08:46:29 +00:00
Emma Foley b5cb3b4158 Rename module collectd_ceilometer->collectd_openstack
Rename the module to fit with the repo rename

Change-Id: I8f3c5a3d1f481a82d742b0b00a52a6d78d76630d
2017-10-19 08:31:14 +00:00