@Override public void update(long value) { dropwizardHistogram.update(value); }
public void updateDelayInterval(long interval) { this.delayIntevalHist.update(interval); } }
@Override public void jobsHistoryEventSize(final int count) { eventsInJobHistoryHist.update(count); } }
@Override public void updateHistogram(String name, int amount) { if (histograms.containsKey(name)) { histograms.get(name).update(amount); } } }
@Override public void updateHistogram(String name, long count) { try { histogramLock.lock(); Histogram histogram = histograms.get(name); histogram.update(count); } catch (ExecutionException e) { throw new IllegalStateException("Error retrieving meter " + name + " from the metric registry ", e); } finally { histogramLock.unlock(); } }
public void addDataPoint(long value) { counter.add(value); histogram.update(value); }
public static void updateHistogramPoints(Histogram histogram, byte[] points, int len) { if (points != null && len > 0) { for (int i = 0; i < len; i++) { long pt = Bytes.toLong(points, i * Longs.BYTES, Longs.BYTES); histogram.update(pt); } } }
@Override public void reportIgnored() { processedDurationHistogram.update(clock.getTime() - start); } };
@Override public void update(long value) { super.update(value); if (this.parentHistogram.isPresent()) { this.parentHistogram.get().update(value); } }
private HBMessage sendPulse(HBPulse pulse) { String id = pulse.get_id(); byte[] details = pulse.get_details(); LOG.debug("Saving Pulse for id [ {} ] data [ {} ].", id, details); meterSendPulseCount.mark(); meterTotalReceivedSize.mark(details.length); histogramHeartbeatSize.update(details.length); heartbeats.put(id, details); return new HBMessage(HBServerMessageType.SEND_PULSE_RESPONSE, null); }
private void recordEsMetrics(JestResult jestResult, @Nullable TimeRange range) { esTotalSearchesCounter.inc(); final long tookMs = tookMsFromSearchResult(jestResult); esRequestTimer.update(tookMs, TimeUnit.MILLISECONDS); if (range != null) { esTimeRangeHistogram.update(TimeRanges.toSeconds(range)); } }
private void recordSliceMetrics(StoreTransaction txh, List<Entry> row) { if (!txh.getConfiguration().hasGroupName()) return; String p = txh.getConfiguration().getGroupName(); final MetricManager mgr = MetricManager.INSTANCE; mgr.getCounter(p, metricsStoreName, M_GET_SLICE, M_ENTRIES_COUNT).inc(row.size()); mgr.getHistogram(p, metricsStoreName, M_GET_SLICE, M_ENTRIES_HISTO).update(row.size()); }
void updateValueSize(final int valueSize) { if (!isRandomValueSize()) return; this.valueSizeHistogram.update(valueSize); }
private void recordSliceMetrics(StoreTransaction txh, List<Entry> row) { if (!txh.getConfiguration().hasGroupName()) return; String p = txh.getConfiguration().getGroupName(); final MetricManager mgr = MetricManager.INSTANCE; mgr.getCounter(p, metricsStoreName, M_GET_SLICE, M_ENTRIES_COUNT).inc(row.size()); mgr.getHistogram(p, metricsStoreName, M_GET_SLICE, M_ENTRIES_HISTO).update(row.size()); }
/** Update call stats for non-critical-path methods */ private void updateRpcGeneric(MethodDescriptor method, CallStats stats) { final String methodName = method.getService().getName() + "_" + method.getName(); getMetric(DRTN_BASE + methodName, rpcTimers, timerFactory) .update(stats.getCallTimeMs(), TimeUnit.MILLISECONDS); getMetric(REQ_BASE + methodName, rpcHistograms, histogramFactory) .update(stats.getRequestSizeBytes()); getMetric(RESP_BASE + methodName, rpcHistograms, histogramFactory) .update(stats.getResponseSizeBytes()); }
public void collect(Cell cell) { valLen.update(cell.getValueLength()); if (prevCell != null && CellComparator.getInstance().compareRows(prevCell, cell) != 0) { // new row collectRow(); } curRowBytes += cell.getSerializedSize(); curRowKeyLength = KeyValueUtil.keyLength(cell); curRowCols++; prevCell = cell; }