Skip to content
Snippets Groups Projects
Commit 22233266 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

updation of KPIMANAGER ServiceEnumName and removal of unnecssary variables.

parent 67146f1e
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!207Resolve "(CTTC) Separation of Monitoring"
......@@ -29,17 +29,12 @@ from common.tools.service.GenericGrpcService import GenericGrpcService
LOGGER = logging.getLogger(__name__)
METRICSDB_HOSTNAME = os.environ.get("METRICSDB_HOSTNAME")
METRICSDB_ILP_PORT = os.environ.get("METRICSDB_ILP_PORT")
METRICSDB_REST_PORT = os.environ.get("METRICSDB_REST_PORT")
METRICSDB_TABLE_MONITORING_KPIS = os.environ.get("METRICSDB_TABLE_MONITORING_KPIS")
METRICS_POOL = MetricsPool('Monitoring', 'RPC')
class KpiManagerServer(KpiManagerServiceServicer):
def __init__(self, cls_name: str = __name__):
LOGGER.info('Init KpiManagerService')
port = get_service_port_grpc(ServiceNameEnum.KPIMANGER) # port updated
port = get_service_port_grpc(ServiceNameEnum.KPIMANAGER) # port updated
GenericGrpcService(port, cls_name = cls_name) # class inheretence was removed
# Init sqlite monitoring db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment