public ActiveRequestCounterMiddleware(MetricsRegistry registry, string metricName) { this.activeRequests = registry.Counter(metricName, Unit.Custom("ActiveRequests")); }
private void reportCounter(long timestamp, MetricName name, Counter counter) { report(timestamp, name, "count", counter.Count); }
public MultiRegistryMetrics() { this.firstCounter = first.Counter("Counter In First Registry", Unit.Requests); this.secondMeter = second.Meter("Meter In Second Registry", Unit.Errors, TimeUnit.Seconds); }
private void reportCounter(MetricName name, Counter counter, long timestamp) { graphite.Send(Prefix(name, "count"), format(counter.Count), timestamp); }
public CountingInterceptor(Counter counter, bool monotonic) { this.counter = counter; this.monotonic = monotonic; }