Add datasources to strategies

This patch set add datasources instead of datasource.

Change-Id: I94f17ae3a0b6a8990293dc9e33be1a2bd3432a14
This commit is contained in:
Alexander Chadin
2018-01-24 20:51:34 +03:00
parent 072822d920
commit 9138b7bacb
2 changed files with 8 additions and 4 deletions

View File

@@ -149,8 +149,10 @@ class BasicConsolidation(base.ServerConsolidationBaseStrategy):
def get_config_opts(cls):
return [
cfg.ListOpt(
"datasource",
help="Data source to use in order to query the needed metrics",
"datasources",
help="Datasources to use in order to query the needed metrics."
" If one of strategy metric isn't available in the first"
" datasource, the next datasource will be chosen.",
item_type=cfg.types.String(choices=['gnocchi', 'ceilometer',
'monasca']),
default=['gnocchi', 'ceilometer', 'monasca']),

View File

@@ -86,8 +86,10 @@ class NoisyNeighbor(base.NoisyNeighborBaseStrategy):
def get_config_opts(cls):
return [
cfg.ListOpt(
"datasource",
help="Data source to use in order to query the needed metrics",
"datasources",
help="Datasources to use in order to query the needed metrics."
" If one of strategy metric isn't available in the first"
" datasource, the next datasource will be chosen.",
item_type=cfg.types.String(choices=['gnocchi', 'ceilometer',
'monasca']),
default=['gnocchi', 'ceilometer', 'monasca'])