internal MetricsSourceAdapter(string prefix, string name, string description, MetricsSource source, IEnumerable <MetricsTag> injectedTags, int period, MetricsConfig conf) : this(prefix, name, description, source, injectedTags, conf.GetFilter(RecordFilterKey ), conf.GetFilter(MetricFilterKey), period + 1, conf.GetBoolean(StartMbeansKey, true)) { }
internal static MetricsSinkAdapter NewSink(string name, string desc, MetricsSink sink, MetricsConfig conf) { return(new MetricsSinkAdapter(name, desc, sink, conf.GetString(ContextKey), conf. GetFilter(SourceFilterKey), conf.GetFilter(RecordFilterKey), conf.GetFilter(MetricFilterKey ), conf.GetInt(PeriodKey, PeriodDefault), conf.GetInt(QueueCapacityKey, QueueCapacityDefault ), conf.GetInt(RetryDelayKey, RetryDelayDefault), conf.GetFloat(RetryBackoffKey, RetryBackoffDefault), conf.GetInt(RetryCountKey, RetryCountDefault))); }
private void ConfigureSources() { sourceFilter = config.GetFilter(PrefixDefault + SourceFilterKey); sourceConfigs = config.GetInstanceConfigs(SourceKey); RegisterSystemSource(); }