Commit 22233266 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

updation of KPIMANAGER ServiceEnumName and removal of unnecssary variables.

parent 67146f1e
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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