protected override void OnStart(string[] args) { _log.Info("Reading signalFx reporter config"); Tuple <MetricsReport, TimeSpan> reporter = SignalFxReporterBuilder.FromAppConfig(); SyntheticCountersReporter synCR = SyntheticCountersReporter.createDefaultReporter(_log, CounterSamplingConfiguration.FromConfig()); _pcr = new PerfCounterReporter(reporter.Item1, reporter.Item2, CounterSamplingConfiguration.FromConfig()); if (synCR != null) { _pcr._couunterReporters.Add(synCR); } _log.Info("Done reading config"); }
public static MetricsReports WithSignalFxFromAppConfig(this MetricsReports reports) { return(SignalFxReporterBuilder.FromAppConfig(reports).Build()); }