public void RunReport() { var counterPaths = _counterSamplingConfig.DefinitionFilePaths .SelectMany(path => CounterFileParser.ReadCountersFromFile(path.Path)) .Union(_counterSamplingConfig.CounterNames.Select(name => name.Name.Trim())) .Distinct(StringComparer.CurrentCultureIgnoreCase) .Where(path => Regex.Match(path, @"^.\SignalFX*").Success) .ToList(); updateSyntheticCounters(counterPaths); }
private void RunReport(CancellationToken t) { var counterPaths = _counterSamplingConfig.DefinitionFilePaths .SelectMany(path => CounterFileParser.ReadCountersFromFile(path.Path)) .Union(_counterSamplingConfig.CounterNames.Select(name => name.Name.Trim())) .Distinct(StringComparer.CurrentCultureIgnoreCase) .ToList(); foreach (var reporter in _couunterReporters) { reporter.RunReport(); } MetricsData metricsData = SetupMetricsData(counterPaths); _report.RunReport(metricsData, () => { return(_healthStatus); }, t); }