Package org.jmxtrans.embedded.output
Class GraphiteHttpWriter
java.lang.Object
org.jmxtrans.embedded.output.AbstractOutputWriter
org.jmxtrans.embedded.output.GraphiteHttpWriter
- All Implemented Interfaces:
OutputWriter
public class GraphiteHttpWriter extends AbstractOutputWriter implements OutputWriter
Graphite implementation of the OutputWriter.
This implementation uses
Carbon Plan Text protocol over HTTP.
Read this thread in order to implement a HTTP
listener in front of Carbon backend.
Settings:
- "url": complete url of the Graphite proxy server. Mandatory
- "namePrefix": prefix append to the metrics name. Optional, default value: "servers.#hostname#.".
- Author:
- Simon Mazas
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_NAME_PREFIXFields inherited from class org.jmxtrans.embedded.output.AbstractOutputWriter
SETTING_HOST, SETTING_NAME_PREFIX, SETTING_PORT, SETTING_PROTOCOL, SETTING_PROXY_HOST, SETTING_PROXY_PORT, SETTING_SOCKET_FACTORY, SETTING_TLS_INSECURE, SETTING_TLS_KEY_STORE, SETTING_TLS_KEY_STORE_PASSWORD, SETTING_TLS_TRUST_STORE, SETTING_TLS_TRUST_STORE_PASSWORD, SETTING_TOKEN, SETTING_URL, SETTING_USE_TLS, SETTING_USERNAME -
Constructor Summary
Constructors Constructor Description GraphiteHttpWriter() -
Method Summary
Modifier and Type Method Description voidstart()No-op implementationvoidwrite(Iterable<QueryResult> results)Send given metrics to the Graphite server.Methods inherited from class org.jmxtrans.embedded.output.AbstractOutputWriter
equals, getBooleanSetting, getIntSetting, getIntSetting, getLongSetting, getSettings, getStrategy, getStringSetting, getStringSetting, hashCode, isEnabled, setEnabled, setSettings, setStrategy, stop, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jmxtrans.embedded.output.OutputWriter
getSettings, isEnabled, setEnabled, setSettings, stop
-
Field Details
-
DEFAULT_NAME_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
GraphiteHttpWriter
public GraphiteHttpWriter()
-
-
Method Details
-
start
public void start()Description copied from class:AbstractOutputWriterNo-op implementation- Specified by:
startin interfaceOutputWriter- Overrides:
startin classAbstractOutputWriter
-
write
Send given metrics to the Graphite server.- Specified by:
writein interfaceOutputWriter- Specified by:
writein classAbstractOutputWriter
-