public virtual void GetMetrics(MetricsCollector collector, bool all) { lock (this) { registry.Snapshot(collector.AddRecord(registry.Info()), all); } }
public virtual void GetMetrics(MetricsCollector builder, bool all) { lock (this) { MetricsRecordBuilder rb = builder.AddRecord(MsName).AddGauge(MsInfo.NumActiveSources , sources.Count).AddGauge(MsInfo.NumAllSources, allSources.Count).AddGauge(MsInfo .NumActiveSinks, sinks.Count).AddGauge(MsInfo.NumAllSinks, allSinks.Count); foreach (MetricsSinkAdapter sa in sinks.Values) { sa.Snapshot(rb, all); } registry.Snapshot(rb, all); } }
public virtual void GetMetrics(MetricsCollector collector, bool all) { UpdateRunningTime(); registry.Snapshot(collector.AddRecord(registry.Info()), all); }