public void currentState(int queueSize, int inFlightCount) { this.operationQueueSize.reportSuccessValue(queueSize); this.operationsInFlight.reportSuccessValue(inFlightCount); }
public void processOperations(int batchSize, long millis) { this.processOperationsBatchSize.reportSuccessValue(batchSize); this.processOperationsLatency.reportSuccessValue(millis); }
public void processingDelay(int millis) { this.operationProcessorDelay.reportSuccessValue(millis); }
public void operationQueueWaitTime(long queueWaitTimeMillis) { this.operationQueueWaitTime.reportSuccessValue(queueWaitTimeMillis); }
/** * This method increments the global and Stream-specific counters of Stream deletions and reports the latency of * the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the deleteStream operation. */ public void deleteStream(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(DELETE_STREAM, 1); deleteStreamLatency.reportSuccessValue(latency.toMillis()); }
static void get(long elapsedMillis, long getDataSize) { DYNAMIC_LOGGER.incCounterValue(MetricsNames.CACHE_READ_BYTES, getDataSize); GET_LATENCY.reportSuccessValue(elapsedMillis); } }
@Override public void reportSuccessValue(long value) { getInstance().reportSuccessValue(value); }
void queueStats(QueueStats qs) { this.writeQueueSize.reportSuccessValue(qs.getSize()); this.writeQueueFillRate.reportSuccessValue((int) (qs.getAverageItemFillRatio() * 100)); }
public void report(long totalBytes, int generationSpread) { DYNAMIC_LOGGER.reportGaugeValue(MetricsNames.CACHE_TOTAL_SIZE_BYTES, totalBytes); this.generationSpread.reportSuccessValue(generationSpread); }
public void memoryCommit(int metadataUpdateTxnCount, Duration elapsed) { this.metadataCommitTxnCount.reportSuccessValue(metadataUpdateTxnCount); this.memoryCommitLatency.reportSuccessEvent(elapsed); }
static void insert(long elapsedMillis, long insertDataSize) { DYNAMIC_LOGGER.incCounterValue(MetricsNames.CACHE_WRITE_BYTES, insertDataSize); INSERT_LATENCY.reportSuccessValue(elapsedMillis); }
public void operationsCompleted(Collection<List<CompletableOperation>> operations, Duration commitElapsed) { operationsCompleted(operations.size(), commitElapsed); operations.stream().flatMap(List::stream).forEach(o -> { long millis = o.getTimer().getElapsedMillis(); this.operationLatency.reportSuccessValue(millis); GLOBAL_OPERATION_LATENCY.reportSuccessValue(millis); }); }
private void report() { ExecutorServiceHelpers.Snapshot s = ExecutorServiceHelpers.getSnapshot(this.executor); if (s != null) { this.queueSize.reportSuccessValue(s.getQueueSize()); this.activeThreads.reportSuccessValue(s.getActiveThreadCount()); } } }
/** * This method increments the global and Stream-specific counters of seal Stream operations, set the number of open * Transactions to 0, and reports the latency of the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the sealStream operation. */ public void sealStream(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(SEAL_STREAM, 1); DYNAMIC_LOGGER.reportGaugeValue(nameFromStream(OPEN_TRANSACTIONS, scope, streamName), 0); sealStreamLatency.reportSuccessValue(latency.toMillis()); }
/** * This method increments the global and Stream-related counters of aborted Transactions and reports the latency * of the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the abort Transaction operation. */ public void abortTransaction(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(globalMetricName(ABORT_TRANSACTION), 1); DYNAMIC_LOGGER.incCounterValue(nameFromStream(ABORT_TRANSACTION, scope, streamName), 1); abortTransactionLatency.reportSuccessValue(latency.toMillis()); }
/** * This method increments the global and Stream-related counters of created Transactions and reports the latency of * the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the create Transaction operation. */ public void createTransaction(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(globalMetricName(CREATE_TRANSACTION), 1); DYNAMIC_LOGGER.incCounterValue(nameFromStream(CREATE_TRANSACTION, scope, streamName), 1); createTransactionLatency.reportSuccessValue(latency.toMillis()); }
/** * This method increments the global and Stream-specific counters of Stream updates and reports the latency of the * operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the updateStream operation. */ public void updateStream(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(globalMetricName(UPDATE_STREAM), 1); DYNAMIC_LOGGER.incCounterValue(nameFromStream(UPDATE_STREAM, scope, streamName), 1); updateStreamLatency.reportSuccessValue(latency.toMillis()); }
/** * This method increments the global and Stream-specific counters of Stream truncations and reports the latency of * the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the truncateStream operation. */ public void truncateStream(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(globalMetricName(TRUNCATE_STREAM), 1); DYNAMIC_LOGGER.incCounterValue(nameFromStream(TRUNCATE_STREAM, scope, streamName), 1); truncateStreamLatency.reportSuccessValue(latency.toMillis()); }
/** * This method increments the global and Stream-related counters of committed Transactions and reports the latency * of the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param latency Latency of the commit Transaction operation. */ public void commitTransaction(String scope, String streamName, Duration latency) { DYNAMIC_LOGGER.incCounterValue(globalMetricName(COMMIT_TRANSACTION), 1); DYNAMIC_LOGGER.incCounterValue(nameFromStream(COMMIT_TRANSACTION, scope, streamName), 1); commitTransactionLatency.reportSuccessValue(latency.toMillis()); }
/** * This method increments the global and Stream-specific counters of Stream creations, initializes other * stream-specific metrics and reports the latency of the operation. * * @param scope Scope. * @param streamName Name of the Stream. * @param minNumSegments Initial number of segments for the Stream. * @param latency Latency of the createStream operation. */ public void createStream(String scope, String streamName, int minNumSegments, Duration latency) { DYNAMIC_LOGGER.incCounterValue(CREATE_STREAM, 1); DYNAMIC_LOGGER.reportGaugeValue(nameFromStream(OPEN_TRANSACTIONS, scope, streamName), 0); DYNAMIC_LOGGER.reportGaugeValue(nameFromStream(SEGMENTS_COUNT, scope, streamName), minNumSegments); DYNAMIC_LOGGER.incCounterValue(nameFromStream(SEGMENTS_SPLITS, scope, streamName), 0); DYNAMIC_LOGGER.incCounterValue(nameFromStream(SEGMENTS_MERGES, scope, streamName), 0); createStreamLatency.reportSuccessValue(latency.toMillis()); }