Class EmbeddedJmxTrans

java.lang.Object
org.jmxtrans.embedded.EmbeddedJmxTrans
All Implemented Interfaces:
EmbeddedJmxTransMBean
Direct Known Subclasses:
SpringEmbeddedJmxTrans

public class EmbeddedJmxTrans
extends Object
implements EmbeddedJmxTransMBean

JMX Queries

If the JMX query returns several mbeans (thanks to '*' or '?' wildcards), then the configured attributes are collected on all the returned mbeans.

Output Writers

OutputWriters can be defined at the query level or globally at the EmbeddedJmxTrans level. The OutputWriters that are effective for a Query are accessible via Query.getEffectiveOutputWriters()

Collected Metrics / Query Results

Default behavior is to store the query results at the query level (see Query.queryResults) to resolve the effective OutputWriters at result export time (Query.getEffectiveOutputWriters()). The drawback is to limit the benefits of batching result to a backend (see Query.exportCollectedMetrics()) and the size limit of the results list to prevent OutOfMemoryError in case of export slowness. An optimization would be, if only one OutputWriter is defined in the whole EmbeddedJmxTrans, to replace all the query-local result queues by one global result-queue.
Author:
Cyrille Le Clerc, Jon Stevens