Druid-influxdb-emitter

Hi Everyone,

I’m hoping someone can help me out. Im running apache druid version 0.18.0 and I’m trying to push some druid stats into influxDB, but way of the druid-influxdb-emitter.

I seem to have it loaded and from the router.log it appears to have loaded and running without error.

I’m just not seeing anything in my influx database.

I used maven to install the druid-influxdb-emiiter extension using this command:

java -classpath “druid/lib/*” org.apache.druid.cli.Main tools pull-deps --clean -c org.apache.druid.extensions.contrib:druid-influxdb-emitter:0.18.0

Here is the output from the router.log

–snip–

2020-05-11T14:24:12,002 INFO [main] org.apache.druid.initialization.Initialization - Loading extension [druid-influxdb-emitter], jars: druid-influxdb-emitter-0.18.0.jar, druid-processing-0.18.0.jar, druid-core-0.18.0.jar, datasketches-java-1.2.0-incubating.jar, hibernate-validator-5.2.5.Final.jar, jboss-logging-3.2.1.Final.jar, classmate-1.1.0.jar, javax.el-api-3.0.0.jar, javax.el-3.0.0.jar, jaxb-api-2.3.1.jar, javax.activation-api-1.2.0.jar, guice-multibindings-4.1.0.jar, jdbi-2.63.1.jar, airline-0.7.jar, log4j-api-2.8.2.jar, log4j-core-2.8.2.jar, log4j-slf4j-impl-2.8.2.jar, log4j-jul-2.8.2.jar, log4j-1.2-api-2.8.2.jar, slf4j-api-1.7.25.jar, jcl-over-slf4j-1.7.12.jar, jackson-jq-0.0.10.jar, joni-2.1.27.jar, jcodings-1.0.43.jar, netty-buffer-4.1.48.Final.jar, netty-codec-http-4.1.48.Final.jar, netty-transport-4.1.48.Final.jar, netty-resolver-4.1.48.Final.jar, opencsv-4.6.jar, netty-codec-4.1.48.Final.jar, netty-handler-4.1.48.Final.jar, commons-text-1.3.jar, commons-collections4-4.2.jar, xz-1.8.jar, zstd-jni-1.3.3-1.jar, json-path-2.3.0.jar, json-smart-2.3.jar, accessors-smart-1.2.jar, antlr4-runtime-4.5.1.jar, disruptor-3.3.6.jar, jna-4.5.1.jar, async-http-client-2.5.3.jar, async-http-client-netty-utils-2.5.3.jar, netty-codec-socks-4.1.48.Final.jar, netty-handler-proxy-4.1.48.Final.jar, netty-transport-native-epoll-4.1.48.Final-linux-x86_64.jar, netty-transport-native-unix-common-4.1.48.Final.jar, netty-resolver-dns-4.1.48.Final.jar, netty-codec-dns-4.1.48.Final.jar, reactive-streams-1.0.2.jar, netty-reactive-streams-2.0.0.jar, javax.activation-1.2.0.jar, sigar-1.6.5.132.jar, jvm-attach-api-1.5.jar, netty-3.10.6.Final.jar, druid-hll-0.18.0.jar, extendedset-0.18.0.jar, jackson-core-2.10.2.jar, jackson-datatype-guava-2.10.2.jar, jackson-datatype-joda-2.10.2.jar, jackson-dataformat-smile-2.10.2.jar, RoaringBitmap-0.8.11.jar, shims-0.8.11.jar, fastutil-8.2.3.jar, compress-lzf-1.0.4.jar, config-magic-0.9.jar, commons-io-2.6.jar, commons-net-3.6.jar, error_prone_annotations-2.3.2.jar, icu4j-55.1.jar, rhino-1.7.11.jar, lz4-java-1.6.0.jar, commons-lang-2.6.jar, asm-7.1.jar, asm-commons-7.1.jar, asm-tree-7.1.jar, asm-analysis-7.1.jar, checker-qual-2.5.7.jar, maven-artifact-3.6.0.jar, plexus-utils-3.0.24.jar, commons-lang3-3.8.1.jar, jsr305-2.0.1.jar, javax.inject-1.jar, validation-api-1.1.0.Final.jar, datasketches-memory-1.2.0-incubating.jar, netty-common-4.1.48.Final.jar, guice-4.1.0.jar, httpclient-4.5.10.jar, commons-logging-1.1.1.jar, commons-codec-1.13.jar, httpcore-4.4.11.jar, jackson-annotations-2.10.2.jar, joda-time-2.10.5.jar, guava-16.0.1.jar, aopalliance-1.0.jar, jackson-databind-2.10.2.jar

2020-05-11T14:24:12,281 DEBUG [main] org.apache.druid.initialization.Initialization - Adding implementation [org.apache.druid.emitter.influxdb.InfluxdbEmitterModule] for class [interface org.apache.druid.initialization.DruidModule] from local file system extension

2020-05-11T14:24:28,447 DEBUG [main] com.google.inject.internal.BytecodeGen - Loading class org.apache.druid.emitter.influxdb.InfluxdbEmitterModule FastClass with com.google.inject.internal.BytecodeGen$BridgeClassLoader@60dd3c23

2020-05-11T14:24:47,018 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.influxdb.databaseName: druid

2020-05-11T14:24:47,025 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.influxdb.flushPeriod: 1000

2020-05-11T14:24:47,028 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.influxdb.hostname:

2020-05-11T14:24:48,311 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.influxdb.influxdbPassword:

2020-05-11T14:24:48,312 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.influxdb.influxdbUserName:

2020-05-11T14:24:48,312 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.influxdb.port: 8086

2020-05-11T14:24:48,312 INFO [main] org.apache.druid.cli.CliRouter - * druid.emitter.logging.logLevel: debug

2020-05-11T14:24:48,312 INFO [main] org.apache.druid.cli.CliRouter - * druid.extensions.loadList: [“druid-kafka-indexing-service”,“druid-lookups-cached-global”,"druid-influxdb-emi

tter"]

–snip–

I have also watch a tcpdump of traffic going to the influx server and there is nothing. So druid looks like its not attempting to connect.

If someone can just point me in a direction of where to look for logs or debugging info as to why its not working, it would be really appreciated.

Regards

Alan.