public class GraphiteHttpWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME_PREFIX |
SETTING_HOST, SETTING_NAME_PREFIX, SETTING_PORT, SETTING_PROXY_HOST, SETTING_PROXY_PORT, SETTING_TOKEN, SETTING_URL, SETTING_USERNAME| Constructor and Description |
|---|
GraphiteHttpWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Load settings, initialize the
.HttpClient.HttpClient client and test the connection to the graphite server. |
void |
write(Iterable<QueryResult> results)
Send given metrics to the Graphite server.
|
equals, getBooleanSetting, getIntSetting, getIntSetting, getLongSetting, getSettings, getStrategy, getStringSetting, getStringSetting, hashCode, isEnabled, setEnabled, setSettings, setStrategy, stop, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSettings, isEnabled, setEnabled, setSettings, stoppublic static final String DEFAULT_NAME_PREFIX
public void start()
.HttpClient.HttpClient client and test the connection to the graphite server.
a Logger.warn(String) message is emitted if the connection to the graphite server fails.start in interface OutputWriterstart in class AbstractOutputWriterpublic void write(Iterable<QueryResult> results)
write in interface OutputWriterwrite in class AbstractOutputWriterCopyright © 2014. All Rights Reserved.