Package org.jmxtrans.agent.influxdb
Class InfluxDbOutputWriter
java.lang.Object
org.jmxtrans.agent.AbstractOutputWriter
org.jmxtrans.agent.influxdb.InfluxDbOutputWriter
- All Implemented Interfaces:
OutputWriter
public class InfluxDbOutputWriter extends AbstractOutputWriter
Output writer for InfluxDb.
- Author:
- Kristoffer Erlandsson
-
Field Summary
Fields Modifier and Type Field Description static StringSETTING_ENABLEDFields inherited from class org.jmxtrans.agent.AbstractOutputWriter
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE -
Constructor Summary
Constructors Constructor Description InfluxDbOutputWriter() -
Method Summary
Modifier and Type Method Description voidpostCollect()called after a serie of writes, typically at the end of a collection.voidpostConstruct(Map<String,String> settings)voidwriteInvocationResult(String invocationName, Object value)voidwriteQueryResult(String metricName, String metricType, Object value)Methods inherited from class org.jmxtrans.agent.AbstractOutputWriter
getDebugLevel, getInfoLevel, getTraceLevel, preCollect, preDestroy
-
Field Details
-
SETTING_ENABLED
- See Also:
- Constant Field Values
-
-
Constructor Details
-
InfluxDbOutputWriter
public InfluxDbOutputWriter()
-
-
Method Details
-
postConstruct
- Specified by:
postConstructin interfaceOutputWriter- Overrides:
postConstructin classAbstractOutputWriter
-
writeInvocationResult
- Specified by:
writeInvocationResultin interfaceOutputWriter- Specified by:
writeInvocationResultin classAbstractOutputWriter- Throws:
IOException
-
writeQueryResult
public void writeQueryResult(String metricName, String metricType, Object value) throws IOException- Specified by:
writeQueryResultin interfaceOutputWriter- Specified by:
writeQueryResultin classAbstractOutputWritermetricType- seeQuery.type- Throws:
IOException
-
postCollect
Description copied from interface:OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
- Specified by:
postCollectin interfaceOutputWriter- Overrides:
postCollectin classAbstractOutputWriter- Throws:
IOException
-