deprecate archive policy of Gnocchi dispatcher

Since we have Archive Policy Rule in Gnocchi, it doesn't make
any sense to configure archive policy here.

Change-Id: Ide510f355361737230efcd89ff78ff974bc96134
This commit is contained in:
Mehdi Abaakouk 2017-03-22 14:56:41 +01:00
parent 2950c7a0e1
commit 5016d7e26a
3 changed files with 12 additions and 0 deletions

View File

@ -77,6 +77,10 @@ class ResourcesDefinition(object):
self._event_attributes[name] = declarative.Definition(
name, attr_cfg, plugin_manager)
if self.cfg.get('archive_policy'):
LOG.warning("archive_policy in gnocchi resource definition is "
"deprecated. Archive Policy Rule must be setup on "
"Gnocchi side instead")
self.metrics = {}
for t in self.cfg['metrics']:
archive_policy = self.cfg.get('archive_policy',

View File

@ -23,6 +23,9 @@ dispatcher_opts = [
help='Gnocchi project used to filter out samples '
'generated by Gnocchi service activity'),
cfg.StrOpt('archive_policy',
deprecated_for_removal=True,
deprecated_reason='Archive Policy Rule must be '
'setup on Gnocchi side instead',
help='The archive policy to use when the dispatcher '
'create a new metric.'),
cfg.StrOpt('resources_definition_file',

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Any Archive Policy configuration in Ceilometer is deprecated. Archive
Policy Rules system of Gnocchi must be used instead.