コード例 #1
0
 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))
 {
 }
コード例 #2
0
 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)));
 }
コード例 #3
0
 private void ConfigureSources()
 {
     sourceFilter  = config.GetFilter(PrefixDefault + SourceFilterKey);
     sourceConfigs = config.GetInstanceConfigs(SourceKey);
     RegisterSystemSource();
 }