Package org.jmxtrans.agent.graphite
Class GraphiteMetricMessageBuilder
java.lang.Object
org.jmxtrans.agent.graphite.GraphiteMetricMessageBuilder
public class GraphiteMetricMessageBuilder extends Object
Generates metric messages to send to graphite instances.
-
Constructor Summary
Constructors Constructor Description GraphiteMetricMessageBuilder(String configuredMetricPathPrefix) -
Method Summary
-
Constructor Details
-
GraphiteMetricMessageBuilder
- Parameters:
configuredMetricPathPrefix- Prefix to add to the metric keys. May be null, in which case servers.your_hostname will be used.
-
-
Method Details
-
buildMessage
Builds a metric string to send to a Graphite instance.- Returns:
- The metric string without trailing newline
-
getPrefix
-