@Override public Gauge register(MetricRegistry registry) { return registry.gauge(new MetricId(name, description, tags), statisticConfigs.toArray( new StatisticConfig[statisticConfigs.size()])); }
private Gauge getInprogressGauge(String connectorName, Set<Tag> tags) { return metricRegistry.gauge(new MetricId(connectorName + "_inprogress_requests", "Inprogress Requests", tags)); }
long duration = System.nanoTime() - startTime; getInprogressGauge(connectorName, mainTagSet).decrement(); metricRegistry.gauge(new MetricId(connectorName + "_response_time_seconds", "Response Time", allTags), responseTimeStatisticConfigs).setValue(duration / 1E9); metricRegistry.counter(new MetricId(connectorName + "_requests_total",