Change-Id: Icb8c54e30163109be703da8bc313a603114ad73f
2.6 KiB
Multi backend support
Make OSProfiler more flexible and production ready.
Problem description
Currently OSprofiler works only with one backend Ceilometer which actually doesn't work well and adds huge overhead. More over often Ceilometer is not installed/used at all. To resolve this we should add support for different backends like: MongoDB, InfluxDB, ElasticSearch, ...
Proposed change
And new osprofiler.drivers mechanism, each driver will do 2 things: send notifications and parse all notification in unified tree structure that can be processed by the REST lib.
Deprecate osprofiler.notifiers and osprofiler.parsers
Change all projects that are using OSprofiler to new model
Alternatives
I don't know any good alternative.
Implementation
Assignee(s)
- Primary assignees:
-
dbelova ayelistratov
Work Items
To add support of multi backends we should change few places in osprofiler that are hardcoded on Ceilometer:
CLI command
show
:I believe we should add extra argument "connection_string" which will allow people to specify where is backend. So it will look like: <backend_type>://user[:password@[address][:port][/database]]
Merge osprofiler.notifiers and osprofiler.parsers to osprofiler.drivers
Notifiers and Parsers are tightly related. Like for MongoDB notifier you should use MongoDB parsers, so there is better solution to keep both in the same place.
This change should be done with keeping backward compatibility, in other words we should create separated directory osprofiler.drivers and put first Ceilometer and then start working on other backends.
These drivers will be chosen based on connection string
Deprecate osprofiler.notifiers and osprofiler.parsers
Switch all projects to new model with connection string
Dependencies
- Cinder, Glance, Trove, Heat should be changed