'Init the Prometheus Exporter'

def init(self):

    try:
        start_http_server(port=int(self.port), addr=self.host)
    except Exception as e:
        logger.critical('Can    not    start    Prometheus    exporter    on    {}:{}    ({})'.format(self.host, self.port, e))
        sys.exit(2)
    else:
        logger.info('Start    Prometheus    exporter    on    {}:{}'.format(self.host, self.port))
