Class ZabbixMetricMessageBuilder

java.lang.Object
org.jmxtrans.agent.zabbix.ZabbixMetricMessageBuilder

public class ZabbixMetricMessageBuilder
extends java.lang.Object
Generates metric messages to send to graphite instances.
  • Constructor Summary

    Constructors
    Constructor Description
    ZabbixMetricMessageBuilder​(java.lang.String hostName)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String buildMessage​(java.lang.String metricName, java.lang.Object value, long timestamp)
    Builds a metric string to send to a Graphite instance.
    java.lang.String getHostName()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZabbixMetricMessageBuilder

      public ZabbixMetricMessageBuilder​(@Nullable java.lang.String hostName)
      Parameters:
      hostName - hostname of the zabbix server
  • Method Details

    • getHostName

      public java.lang.String getHostName()
    • buildMessage

      public java.lang.String buildMessage​(java.lang.String metricName, java.lang.Object value, long timestamp)
      Builds a metric string to send to a Graphite instance.
      Returns:
      The metric json string without trailing newline