/** * The number of tasks which were executed by this executor * * @return the number of tasks executed so far */ public long getExecuted() { return executed.getCount(); }
/** * Returns the total number of unique incidents (with different locations) encountered. * * @return the total number of unique incidents so far. */ public long getNumUniqueIncidents() { return numUniqueIncidents.getCount(); } }
/** * Returns the total number of log messages encountered. * * @return the total number of log messages so far. */ public long getNumLogMessages() { return numLogMessages.getCount(); }
/** * Returns the total number of incidents (exceptions) encountered. * * @return the total number of incidents so far. */ public long getNumIncidents() { return numIncidents.getCount(); }
public long getCount() { return objectCount.getCount(); } }
/** * The number of tasks which were executed by blocking the caller due to system overload conditions. * <p> * A system overload occurs if all available tasks are busy and the queue of this executor reached its limit. * * @return the number of blocking task executions so far. */ public long getBlocked() { return blocked.getCount(); }
/** * The number of tasks dropped due to system overload conditions. * <p> * A system overload occurs if all available tasks are busy and the queue of this executor reached its limit. If * a task has a <tt>dropHandler</tt> attached, the handler is informed and the task is not executed by simply * deleted. * * @return the number of dropped tasks so far. */ public long getDropped() { return dropped.getCount(); } }
@Override public void gather(MetricsCollector collector) { if (backgroundTasks.getCount() > 0) { collector.differentialMetric("kernel_delay_line_tasks", "delay-line-tasks", "Delay-Line Tasks", backgroundTasks.getCount(), "1/min"); } long length; synchronized (waitingTasks) { length = waitingTasks.size(); } collector.metric("kernel_delay_line_length", "delay-line-length", "Delay-Line Length", length, null); } }
/** * Creates a new CallContext for the given thread. * <p> * Discards the current <tt>CallContext</tt>, if there was already one. * * @return the newly created CallContext, which is already attached to the current thread. */ public static CallContext initialize() { return initialize(true, getNodeName() + "/" + interactionCounter.getCount()); }
collector.differentialMetric("jdbc_use", "db-uses", "JDBC Uses", numUses.getCount(), "/min"); collector.differentialMetric("jdbc_connects", "db-connects", "JDBC Connects", numConnects.getCount(), "/min"); "db-queries", "JDBC Queries", numQueries.getCount(), "/min"); collector.differentialMetric("jdbc_slow_queries", "db-slow-queries", "Slow JDBC Queries", numSlowQueries.getCount(), "/min"); collector.metric("jdbc_query_duration",
@Override public void gather(MetricsCollector collector) { if (mongo.isConfigured()) { collector.metric("mongo_calls","mongo-calls", "Mongo DB Calls", mongo.callDuration.getCount(), "/min"); collector.metric("mongo_call_duration","mongo-call-duration", "Mongo DB Call Duration", mongo.callDuration.getAndClear(), "ms"); collector.differentialMetric("mongo_slow_queries", "mongo-slow-queries", "MongoDB Slow Queries", mongo.numSlowQueries.getCount(), "/min"); } } }
@Override public void gather(MetricsCollector collector) { if (elastic.isConfigured()) { collector.differentialMetric("es_slow_queries", "es-slow-queries", "Elasticsearch Slow Queries", elastic.numSlowQueries.getCount(), "/min"); collector.metric("es_calls", "es-calls", "Elasticsearch Calls", elastic.callDuration.getCount(), "/min"); collector.metric("es_call_duration", "es-call-duration", "Elasticsearch Call Duration", elastic.callDuration.getAndClear(), "ms"); } } }
IndexAccess.oneSecondDelayLine.size(), null); collector.differentialMetric("index-blocks", "index-blocks", "ES-DelayBlocks", index.blocks.getCount(), "/min"); collector.differentialMetric("index-delays", "index-delays", "ES-Delays", index.delays.getCount(), "/min"); collector.differentialMetric("index-locking-errors", "index-locking-errors", "ES-OptimisticLock-Errors", index.optimisticLockErrors.getCount(), "/min"); collector.metric("index_query_duration",
@Override public void gather(MetricsCollector collector) { gatherMemoryMetrics(collector); gatherGCMetrics(collector); collector.differentialMetric("kernel_interactions", "sys-interactions", "Interactions", CallContext.getInteractionCounter().getCount(), "/min"); collector.differentialMetric("kernel_log_entries", "sys-logs", "Log Messages", monitor.getNumLogMessages(), "/min"); collector.differentialMetric("kernel_incidents", "sys-incidents", "Incidents", monitor.getNumIncidents(), "/min"); collector.differentialMetric("kernel_unique_incidents", "sys-unique-incidents", "Unique Incidents", monitor.getNumUniqueIncidents(), "/min"); }