예제 #1
0
        public override void Init()
        {
            _logger.info("Initiating metrics...");
            if (_metricsBuilt && _reporter.Empty)
            {
                _logger.warn("Several metrics were enabled but no exporting option was configured to report values to. " + "Disabling kernel metrics extension.");
                _life.clear();
            }

            if (!_reporter.Empty && !_metricsBuilt)
            {
                _logger.warn("Exporting tool have been configured to report values to but no metrics were enabled. " + "Disabling kernel metrics extension.");
                _life.clear();
            }

            _life.init();
        }