/** * Report that a filtered SEP operation has been processed. This method should only be called to * report SEP operations that have been processed after making it through the filtering process. * * @param duration The number of millisecods spent handling the SEP operation */ public void reportFilteredSepOperation(long duration) { sepProcessingRate.inc(duration); }
/** * @inheritDoc */ public long getBlockReportAverageTime() { return myMetrics.blockReport.getPreviousIntervalAverageTime(); }
/** * @inheritDoc */ public int getRpcOpsNumber() { return myMetrics.rpcProcessingTime.getPreviousIntervalNumOps() ; }
lock.lock(); try { intervalHeartBeat(); try { if (mr != null) { mr.incrMetric(getName() + "_num_ops", getPreviousIntervalNumOps()); mr.setMetric(getName() + "_avg_time", getPreviousIntervalAverageTime()); if (printMinMax) { mr.setMetric(getName() + "_min", getMinTime()); mr.setMetric(getName() + "_max", getMaxTime()); resetMinMax(); LOG.info("pushMetric failed for " + getName() + "\n" + StringUtils.stringifyException(e));
/** * Push the delta metrics to the mr. * The delta is since the last push/interval. * * Note this does NOT push to JMX * (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and * {@link #getPreviousIntervalNumOps()} * * @param mr */ public synchronized void pushMetric(final MetricsRecord mr) { intervalHeartBeat(); try { mr.incrMetric(getName() + "_num_ops", getPreviousIntervalNumOps()); mr.setMetric(getName() + "_avg_time", getPreviousIntervalAverageTime()); } catch (Exception e) { LOG.info("pushMetric failed for " + getName() + "\n" , e); } }
/** * @inheritDoc */ public void resetAllMinMax() { myMetrics.rpcProcessingTime.resetMinMax(); myMetrics.rpcQueueTime.resetMinMax(); } }
/** * Push the delta metrics to the mr. * The delta is since the last push/interval. * * Note this does NOT push to JMX * (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and * {@link #getPreviousIntervalNumOps()} * * @param mr */ public synchronized void pushMetric(final MetricsRecord mr) { intervalHeartBeat(); try { mr.incrMetric(name + "_num_ops", getPreviousIntervalNumOps()); mr.setMetric(name + "_avg_time", getPreviousIntervalAverageTime()); } catch (Exception e) { LOG.info("pushMetric failed for " + name + "\n" + StringUtils.stringifyException(e)); } }
public synchronized void incrTimeVaryingMetric( String name, long amt, int numOps) { MetricsTimeVaryingRate m = (MetricsTimeVaryingRate)registry.get(name); if (m == null) { m = new MetricsTimeVaryingRate(name, this.registry); this.needsUpdateMessage = true; } if (numOps > 0) { m.inc(numOps, amt); } }
/** * @inheritDoc */ public long getRpcOpsAvgProcessingTimeMax() { return myMetrics.rpcProcessingTime.getMaxTime(); }
/** * @inheritDoc */ public long getRpcOpsAvgProcessingTimeMin() { return myMetrics.rpcProcessingTime.getMinTime(); }
private MetricsTimeVaryingRate create(String key) { return new MetricsTimeVaryingRate(key, this.registry); }
public synchronized void pushMetric(final MetricsRecord mr) { super.pushMetric(mr); super.inc(getPreviousIntervalAverageTime()); reset = false; } else {
public void doUpdates(MetricsContext context) { prewriteLatency.pushMetric(metricsRecord); commitPrimaryLatency.pushMetric(metricsRecord); commitSecondaryLatency.pushMetric(metricsRecord); readLatency.pushMetric(metricsRecord); nextLatency.pushMetric(metricsRecord); metricsRecord.update(); rollbackCount.pushMetric(metricsRecord); isLockExpiredLatency.pushMetric(metricsRecord); getScannerLatency.pushMetric(metricsRecord); batchSizeOfTimestampRequest.pushMetric(metricsRecord); remoteTimestampRequestLatency.pushMetric(metricsRecord); }
/** * Push the delta metrics to the mr. * The delta is since the last push/interval. * * Note this does NOT push to JMX * (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and * {@link #getPreviousIntervalNumOps()} * * @param mr */ public synchronized void pushMetric(final MetricsRecord mr) { intervalHeartBeat(); try { mr.incrMetric(getName() + "_num_ops", getPreviousIntervalNumOps()); mr.setMetric(getName() + "_avg_time", getPreviousIntervalAverageTime()); } catch (Exception e) { LOG.info("pushMetric failed for " + getName() + "\n" , e); } }
public void resetAllMinMax() { this.atomicIncrementTime.resetMinMax(); this.fsReadLatency.resetMinMax(); this.fsWriteLatency.resetMinMax(); this.fsWriteSize.resetMinMax(); this.fsSyncLatency.resetMinMax(); this.slowHLogAppendTime.resetMinMax(); }
" queueTime= " + qTime + " procesingTime= " + processingTime); rpcMetrics.rpcQueueTime.inc(qTime); rpcMetrics.rpcProcessingTime.inc(processingTime); m.inc(processingTime); rpcMetrics.metricsList.put(call.getMethodName(), new MetricsTimeVaryingRate(call.getMethodName())); m = rpcMetrics.metricsList.get(call.getMethodName()); m.inc(processingTime);
/** * @inheritDoc */ public long getRpcOpsAvgQueueTimeMax() { return myMetrics.rpcQueueTime.getMaxTime(); }
/** * @inheritDoc */ public long getRpcOpsAvgQueueTimeMin() { return myMetrics.rpcQueueTime.getMinTime(); }
private MetricsTimeVaryingRate createMethodTimeMetrics(String key) { return new MetricsTimeVaryingRate(key, this.registry); }