Deprecate the ceilometer collector

The Ceilometer API has been deprecated for a while now. Some of the meter
types queried by the collector (instance, image) have been removed from the
Telemetry project in the Ocata release.

In order to make sure that the warning will be seen, it has been put in the
constructor of the Worker class.

We should completely remove the collector during the next release cycle.

Change-Id: Ieaa2bc585d0cbcf7b035da627e189c920c9a8e08
This commit is contained in:
Luka Peschke 2018-01-24 09:56:06 +01:00
parent c89a3435c5
commit da7dbc4593
2 changed files with 9 additions and 0 deletions

View File

@ -153,6 +153,10 @@ class APIWorker(BaseWorker):
class Worker(BaseWorker):
def __init__(self, collector, storage, tenant_id=None):
self._collector = collector
if getattr(self._collector, 'collector_name') == 'ceilometer':
LOG.warning('Ceilometer collector is deprecated and will be '
'removed during R cycle. This collector only works '
'with versions prior to Ocata')
self._storage = storage
self._period = METRICS_CONF['period']
self._wait_time = METRICS_CONF['wait_periods'] * self._period

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ceilometer collector has been deprecated. Gnocchi should be used by
default. The collector will be removed during the Rocky development cycle.