Class GraphitePickleWriter

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

public class GraphitePickleWriter
extends AbstractOutputWriter
implements OutputWriter
Graphite implementation of the OutputWriter. This implementation uses Carbon Pickle 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: 2004.
  • "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 SocketOutputStreamPoolFactory.DEFAULT_SOCKET_CONNECT_TIMEOUT_IN_MILLIS

All the results of write(Iterable) are sent in one single cPickle message.

Author:
Cyrille Le Clerc