jmxtrans-agent is a version of jmxtrans intended to be used as a java agent. JmxTrans Agent has zero dependencies to ease integration.To select which attributes to collect, use the attribute or attributes attribute on the query element. attribute accepts a single attribute while attributes accepts a comma-separated list of attributes to collect. If you do not specify any attributes, all attributes of the MBean will be dynamically discovered and collected. Use the expression language #attribute# in the resultAlias to use the attribute name in the metric name when collecting many attributes.