Class GraphiteWriter

java.lang.Object
org.jmxtrans.embedded.output.AbstractOutputWriter
org.jmxtrans.embedded.output.GraphiteWriter
All Implemented Interfaces:
OutputWriter

public class GraphiteWriter
extends AbstractOutputWriter
implements OutputWriter
Graphite implementation of the OutputWriter. This implementation uses Carbon Plan Text protocol over TCP/IP. Settings:
  • "host": hostname or ip address of the Graphite server. Mandatory
  • "port": listen port for the TCP Plain Text Protocol of the Graphite server. Optional, default value: 2003.
  • "namePrefix": prefix append to the metrics name. Optional, default value: "servers.#hostname#.".
  • "enabled": flag to enable/disable the writer. Optional, default value: {$code true}.
  • "graphite.socketConnectTimeoutInMillis": timeout for the socketConnect in millis. Optional, default value: SocketWriterPoolFactory.DEFAULT_SOCKET_CONNECT_TIMEOUT_IN_MILLIS
  • "socketFactory": name of a custom javax.net.SocketFactory to customize the SocketFactory used to connect to the Graphite server
  • "protocol": "TCP" or "UDP". Optional, the default value is "TCP"
  • "useTls": for "TCP", boolean to use TLS/SSL. Optional, default is "false"
  • "tls.insecure": please don't. For TLS/SSL, disable x509 certificate checks. Optional, default is "false"
  • "tls.keyStore": path to the given JKS key store. Can be a classpath resource ("classpath:com/example/keystore.jks") of file system related. Optional, if {code null}, then the JVM key store is used.
  • "tls.keyStorePassword": password to open the key store.
  • "tls.trustStore": path to the given JKS trust store. Can be a classpath resource ("classpath:com/example/truststore.jks") of file system related. Optional, if {code null}, then the JVM key store is used.
  • "tls.trustStorePassword": password to open the trust store.
Author:
Cyrille Le Clerc, Patrick Brühlmann