public ActiveRequestCounterMiddleware(MetricsRegistry registry, string metricName)
 {
     this.activeRequests = registry.Counter(metricName, Unit.Custom("ActiveRequests"));
 }
Esempio n. 2
0
 private void reportCounter(long timestamp, MetricName name, Counter counter)
 {
     report(timestamp, name, "count", counter.Count);
 }
Esempio n. 3
0
 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;
 }