@Override public void processCounter(MetricName name, Counter counter, List<DataObject> dataObjectList) throws Exception { dataObjectList.add(toDataObject(name, "", counter.count())); }
private void addSnapshotDataObject(MetricName key, Histogram histogram, List<DataObject> dataObjectList) { Snapshot snapshot = histogram.getSnapshot(); dataObjectList.add(toDataObject(key, ".min", histogram.min())); dataObjectList.add(toDataObject(key, ".max", histogram.max())); dataObjectList.add(toDataObject(key, ".mean", histogram.mean())); dataObjectList.add(toDataObject(key, ".stddev", histogram.stdDev())); dataObjectList.add(toDataObject(key, ".median", snapshot.getMedian())); dataObjectList.add(toDataObject(key, ".75th", snapshot.get75thPercentile())); dataObjectList.add(toDataObject(key, ".95th", snapshot.get95thPercentile())); dataObjectList.add(toDataObject(key, ".98th", snapshot.get98thPercentile())); dataObjectList.add(toDataObject(key, ".99th", snapshot.get99thPercentile())); dataObjectList.add(toDataObject(key, ".99.9th", snapshot.get999thPercentile())); }
public void processGauge(MetricName name, Gauge<?> gauge, List<DataObject> dataObjectList) throws Exception { dataObjectList.add(toDataObject(name, "", gauge.value())); }
private void addMeterDataObject(MetricName key, Metered meter, List<DataObject> dataObjectList) { dataObjectList.add(toDataObject(key, ".count", meter.count())); dataObjectList.add(toDataObject(key, ".meanRate", convertRate(meter.meanRate()))); dataObjectList.add(toDataObject(key, ".1-minuteRate", convertRate(meter.oneMinuteRate()))); dataObjectList.add(toDataObject(key, ".5-minuteRate", convertRate(meter.fiveMinuteRate()))); dataObjectList.add(toDataObject(key, ".15-minuteRate", convertRate(meter.fifteenMinuteRate()))); }
private void addSnapshotDataObjectWithConvertDuration(MetricName key, Timer timer, List<DataObject> dataObjectList) { Snapshot snapshot = timer.getSnapshot(); dataObjectList.add(toDataObject(key, ".min", convertDuration(timer.min()))); dataObjectList.add(toDataObject(key, ".max", convertDuration(timer.max()))); dataObjectList.add(toDataObject(key, ".mean", convertDuration(timer.mean()))); dataObjectList.add(toDataObject(key, ".stddev", convertDuration(timer.stdDev()))); dataObjectList.add(toDataObject(key, ".median", convertDuration(snapshot.getMedian()))); dataObjectList.add(toDataObject(key, ".75th", convertDuration(snapshot.get75thPercentile()))); dataObjectList.add(toDataObject(key, ".95th", convertDuration(snapshot.get95thPercentile()))); dataObjectList.add(toDataObject(key, ".98th", convertDuration(snapshot.get98thPercentile()))); dataObjectList.add(toDataObject(key, ".99th", convertDuration(snapshot.get99thPercentile()))); dataObjectList.add(toDataObject(key, ".99.9th", convertDuration(snapshot.get999thPercentile()))); }