Package org.jmxtrans.embedded.output
Class ConsoleWriter
java.lang.Object
org.jmxtrans.embedded.output.AbstractOutputWriter
org.jmxtrans.embedded.output.ConsoleWriter
- All Implemented Interfaces:
OutputWriter
public class ConsoleWriter extends AbstractOutputWriter implements OutputWriter
Output results to
stdout.
Settings:
- "enabled": flag to enable/disable the writer. Optional, default value: {$code true}.
<metric path> <metric value> <metric timestamp>.
With timestamp in seconds.- Author:
- Cyrille Le Clerc
-
Field Summary
Fields inherited from class org.jmxtrans.embedded.output.AbstractOutputWriter
logger, 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 ConsoleWriter() -
Method Summary
Modifier and Type Method Description voidwrite(Iterable<QueryResult> results)Write metrics tostdout.Methods inherited from class org.jmxtrans.embedded.output.AbstractOutputWriter
equals, getBooleanSetting, getIntSetting, getIntSetting, getLongSetting, getSettings, getStrategy, getStringSetting, getStringSetting, hashCode, isEnabled, setEnabled, setSettings, setStrategy, start, 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, start, stop
-
Constructor Details
-
ConsoleWriter
public ConsoleWriter()
-
-
Method Details
-
write
Write metrics tostdout.- Specified by:
writein interfaceOutputWriter- Specified by:
writein classAbstractOutputWriter
-