X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fsettings.py;h=3b20c2b9b354f049d01659716694ae854fc8ec65;hb=9604945f57dbff85cf7948b475d6e86a0e5a2c90;hp=d27f0ca70c534deec1e3906e49dc837c131afca3;hpb=9608081aa7b0ff8823ddbcd1144948ee0369160e;p=osm%2FMON.git diff --git a/osm_mon/core/settings.py b/osm_mon/core/settings.py index d27f0ca..3b20c2b 100644 --- a/osm_mon/core/settings.py +++ b/osm_mon/core/settings.py @@ -26,7 +26,7 @@ import os from collections import namedtuple -from osm_mon.plugins.OpenStack.singleton import Singleton +from osm_mon.core.singleton import Singleton import six @@ -62,9 +62,16 @@ class Config(object): CfgParam('BROKER_URI', "localhost:9092", six.text_type), CfgParam('MONGO_URI', "mongo:27017", six.text_type), CfgParam('DATABASE', "sqlite:///mon_sqlite.db", six.text_type), - CfgParam('OS_NOTIFIER_URI', "http://localhost:8662", six.text_type), - CfgParam('OS_DEFAULT_GRANULARITY', "300", six.text_type), + CfgParam('OS_DEFAULT_GRANULARITY', 300, int), CfgParam('REQUEST_TIMEOUT', 10, int), + CfgParam('OSMMON_LOG_LEVEL', "INFO", six.text_type), + CfgParam('OSMMON_KAFKA_LOG_LEVEL', "WARN", six.text_type), + CfgParam('OSMMON_COLLECTOR_INTERVAL', 30, int), + CfgParam('OSMMON_EVALUATOR_INTERVAL', 30, int), + CfgParam('OSMMON_VCA_HOST', "localhost", six.text_type), + CfgParam('OSMMON_VCA_SECRET', "secret", six.text_type), + CfgParam('OSMMON_VCA_USER', "admin", six.text_type), + CfgParam('OSMMON_DATABASE_COMMONKEY', "changeme", six.text_type), ] _config_dict = {cfg.key: cfg for cfg in _configuration}