public static IReportFactory AddGraphite( this IReportFactory factory, Uri baseAddress, IFilterMetrics filter = null) { var settings = new GraphiteReporterSettings { GraphiteSettings = new GraphiteSettings(baseAddress) }; factory.AddGraphite(settings, filter); return(factory); }
public static IReportFactory AddGraphite( this IReportFactory factory, string host, int port, ConnectionType connectionType = ConnectionType.Tcp, string metricTemplate = null, IFilterMetrics filter = null) { var settings = new GraphiteReporterSettings { Host = host, Port = port, ConnectionType = connectionType, MetricNameFormatter = string.IsNullOrEmpty(metricTemplate) ? new GraphiteMetricNameFormatter() : new GraphiteMetricNameFormatter(metricTemplate) }; factory.AddGraphite(settings, filter); return(factory); }