src/main/java/org/jmxtrans/agent/graphite/GraphiteMetricMessageBuilder.java
public String buildMessage(String metricName, Object value, long timestamp) {
        if (value instanceof Boolean) {
            return metricPathPrefix + metricName + " " + ((Boolean)value ? 1 : 0) + " " + timestamp;
        }
        return metricPathPrefix + metricName + " " + value + " " + timestamp;
    }
public String buildMessage(String metricName, Object value, long timestamp) {
        if (value instanceof Boolean) {
            return metricPathPrefix + metricName + " " + ((Boolean)value ? 1 : 0) + " " + timestamp;
        }
        return metricPathPrefix + metricName + " " + value + " " + timestamp;
    }
Builds a metric string to send to a Graphite instance.

@return The metric string without trailing newline