This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch docker-stats-source in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git
commit 206e7e9468ca4fd8548008027ca68d95641ad0bb Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Jan 20 08:29:02 2021 +0100 Added a docker stats source connector example --- docker/docker-source-stats/README.adoc | 141 +++++++++++++++++++++ .../config/CamelDockerSourceConnector.properties | 30 +++++ 2 files changed, 171 insertions(+) diff --git a/docker/docker-source-stats/README.adoc b/docker/docker-source-stats/README.adoc new file mode 100644 index 0000000..59330ca --- /dev/null +++ b/docker/docker-source-stats/README.adoc @@ -0,0 +1,141 @@ += Camel-Kafka-connector Docker Source Consuming Stats + +This is an example for Camel-Kafka-connector Docker Source Consuming Stats + +== Standalone + +=== What is needed + +- A Docker daemon +- A running docker container + +=== Preparing the docker container + +In my local docker enviroment I have the Debian image for example + +[source] +---- +> docker images +REPOSITORY TAG IMAGE ID CREATED SIZE +debian latest e7d08cddf791 8 days ago 114MB +---- + +and I need to run it to check the stats + +[source] +---- +> docker run -d --name test -it debian +72d9bc33bd3794e7b2f904405f7dd975d64456002d026148e8c6a56a2379c80b +---- + +take note of the id. + +=== Running Kafka + +[source] +---- +$KAFKA_HOME/bin/zookeeper-server-start.sh $KAFKA_HOME/config/zookeeper.properties +$KAFKA_HOME/bin/kafka-server-start.sh $KAFKA_HOME/config/server.properties +$KAFKA_HOME/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic mytopic +---- + +=== Download the connector package + +Download the connector package zip and extract the content to a directory. In this example we'll use `/home/oscerd/connectors/` + +[source] +---- +> cd /home/oscerd/connectors/ +> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-docker-kafka-connector/0.7.0/camel-docker-kafka-connector-0.7.0-package.zip +> unzip camel-docker-kafka-connector-0.7.0-package.zip +---- + +=== Configuring Kafka Connect + +You'll need to set up the `plugin.path` property in your kafka + +Open the `$KAFKA_HOME/config/connect-standalone.properties` and set the `plugin.path` property to your choosen location: + +[source] +---- +... +plugin.path=/home/oscerd/connectors +... +---- + +=== Setup the connectors + +Open the Docker configuration file at `$EXAMPLES/docker/docker-source-stats/config/CamelDockerSourceConnector.properties` + +[source] +---- +name=CamelDockerSourceConnector +connector.class=org.apache.camel.kafkaconnector.docker.CamelDockerSourceConnector +tasks.max=1 + +key.converter=org.apache.kafka.connect.storage.StringConverter +value.converter=org.apache.kafka.connect.storage.StringConverter + +topics=docker-test-events-st + +camel.component.docker.host=/var/run/docker.sock +camel.component.docker.socket=true +camel.source.path.operation=stats +camel.source.endpoint.containerId=<containerId> +---- + +In this case we are using local unix socket. + +For the containerId you'll need to use the value of the running debian container. + +=== Running the example + +Run the kafka connect with the Docker Source connector: + +[source] +---- +$KAFKA_HOME/bin/connect-standalone.sh $KAFKA_HOME/config/connect-standalone.properties $EXAMPLES/docker/docker-source-stats/config/CamelDockerSourceConnector.properties +---- + +We'll get multiple message with statistics + +On a different terminal run the kafkacat consumer + +[source] +---- +./kafkacat -b localhost:9092 -t mytopic +% Auto-selecting Consumer mode (use -P or -C to override) +Statistics(read=2021-01-20T07:16:22.337418782Z, preread=0001-01-01T00:00:00Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@601ce92b, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], ioTimeRecur [...] +Statistics(read=2021-01-20T07:16:23.341055565Z, preread=2021-01-20T07:16:22.337418782Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@40d8051b, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:24.344823138Z, preread=2021-01-20T07:16:23.341055565Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@1b9e4b1c, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:25.350790298Z, preread=2021-01-20T07:16:24.344823138Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@5c13589f, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:26.356250726Z, preread=2021-01-20T07:16:25.350790298Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@413c140a, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:27.361979859Z, preread=2021-01-20T07:16:26.356250726Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@470730a6, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:28.370152319Z, preread=2021-01-20T07:16:27.361979859Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@7b542177, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:29.375961563Z, preread=2021-01-20T07:16:28.370152319Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@7aa015d1, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:30.380994391Z, preread=2021-01-20T07:16:29.375961563Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@1c19e30a, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:31.386448488Z, preread=2021-01-20T07:16:30.380994391Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@6f503b9b, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:32.392174635Z, preread=2021-01-20T07:16:31.386448488Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@79c4efc5, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:33.397803788Z, preread=2021-01-20T07:16:32.392174635Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@35f00d34, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:34.407263586Z, preread=2021-01-20T07:16:33.397803788Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@4331eae, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], io [...] +Statistics(read=2021-01-20T07:16:35.413472883Z, preread=2021-01-20T07:16:34.407263586Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@5eaaf5bd, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:36.419729881Z, preread=2021-01-20T07:16:35.413472883Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@235e0c15, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:37.424763426Z, preread=2021-01-20T07:16:36.419729881Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@2ee0f32e, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:38.430359767Z, preread=2021-01-20T07:16:37.424763426Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@4a82a640, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:39.435915046Z, preread=2021-01-20T07:16:38.430359767Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@3931fc04, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:40.443377327Z, preread=2021-01-20T07:16:39.435915046Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@7815543d, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:41.449398415Z, preread=2021-01-20T07:16:40.443377327Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@20db8628, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:42.454408302Z, preread=2021-01-20T07:16:41.449398415Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@4424fa9d, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:43.460097943Z, preread=2021-01-20T07:16:42.454408302Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@7c175fa3, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:44.465468309Z, preread=2021-01-20T07:16:43.460097943Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@1a78216, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], io [...] +Statistics(read=2021-01-20T07:16:45.470686654Z, preread=2021-01-20T07:16:44.465468309Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@3976b816, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:46.476086451Z, preread=2021-01-20T07:16:45.470686654Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@34512b55, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:47.483018832Z, preread=2021-01-20T07:16:46.476086451Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@4464529a, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:48.488540299Z, preread=2021-01-20T07:16:47.483018832Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@61e9ba73, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:49.493792217Z, preread=2021-01-20T07:16:48.488540299Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@3ab45a7f, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +Statistics(read=2021-01-20T07:16:50.49947575Z, preread=2021-01-20T07:16:49.493792217Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@5fca2574, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], io [...] +Statistics(read=2021-01-20T07:16:51.5052893Z, preread=2021-01-20T07:16:50.49947575Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@7df91c77, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], ioTi [...] +Statistics(read=2021-01-20T07:16:52.510568282Z, preread=2021-01-20T07:16:51.5052893Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@21c6baaf, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], ioT [...] +Statistics(read=2021-01-20T07:16:53.519078482Z, preread=2021-01-20T07:16:52.510568282Z, networks={eth0=StatisticNetworksConfig(rxBytes=3868, rxDropped=0, rxErrors=0, rxPackets=28, txBytes=0, txDropped=0, txErrors=0, txPackets=0)}, network=null, memoryStats=com.github.dockerjava.api.model.MemoryStatsConfig@4ccbe8ef, blkioStats=BlkioStatsConfig(ioServiceBytesRecursive=[], ioServicedRecursive=[], ioQueueRecursive=[], ioServiceTimeRecursive=[], ioWaitTimeRecursive=[], ioMergedRecursive=[], i [...] +% Reached end of topic mytopic [0] at offset 32 +---- diff --git a/docker/docker-source-stats/config/CamelDockerSourceConnector.properties b/docker/docker-source-stats/config/CamelDockerSourceConnector.properties new file mode 100644 index 0000000..a4f6af5 --- /dev/null +++ b/docker/docker-source-stats/config/CamelDockerSourceConnector.properties @@ -0,0 +1,30 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +name=CamelDockerSourceConnector +connector.class=org.apache.camel.kafkaconnector.docker.CamelDockerSourceConnector +tasks.max=1 + +key.converter=org.apache.kafka.connect.storage.StringConverter +value.converter=org.apache.kafka.connect.storage.StringConverter + +topics=docker-test-events-st + +camel.component.docker.host=/var/run/docker.sock +camel.component.docker.socket=true +camel.source.path.operation=stats +camel.source.endpoint.containerId=<containerId>
