Skip to content

Commit

Permalink
Test metricbeat kafka module with kafka 2.0.0 (#7992)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored and ruflin committed Aug 17, 2018
1 parent 471c360 commit 7635731
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 30 deletions.
12 changes: 10 additions & 2 deletions metricbeat/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,20 @@ services:
kafka:
build:
context: ./module/kafka/_meta
dockerfile: Dockerfile.1.1.0
args:
KAFKA_VERSION: 2.0.0

kafka_1_1_0:
build:
context: ./module/kafka/_meta
args:
KAFKA_VERSION: 1.1.0

kafka_0_10_2:
build:
context: ./module/kafka/_meta
dockerfile: Dockerfile.0.10.2
args:
KAFKA_VERSION: 0.10.2.1

kibana:
build: ./module/kibana/_meta
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules/kafka.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The default metricsets are `consumergroup` and `partition`.
[float]
=== Compability

This module is tested with Kafka 0.10.2 and 1.1.0.
This module is tested with Kafka 0.10.2.1, 1.1.0 and 2.0.0.


[float]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM debian:stretch

ARG KAFKA_VERSION=2.0.0

ENV KAFKA_HOME /kafka
# The advertised host is kafka. This means it will not work if container is started locally and connected from localhost to it
ENV KAFKA_LOGS_DIR="/kafka-logs"
ENV KAFKA_VERSION 1.1.0
ENV _JAVA_OPTIONS "-Djava.net.preferIPv4Stack=true"
ENV TERM=linux

Expand Down
25 changes: 0 additions & 25 deletions metricbeat/module/kafka/_meta/Dockerfile.0.10.2

This file was deleted.

2 changes: 1 addition & 1 deletion metricbeat/module/kafka/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ The default metricsets are `consumergroup` and `partition`.
[float]
=== Compability

This module is tested with Kafka 0.10.2 and 1.1.0.
This module is tested with Kafka 0.10.2.1, 1.1.0 and 2.0.0.
4 changes: 4 additions & 0 deletions metricbeat/tests/system/test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@ def get_hosts(self):
os.getenv('KAFKA_PORT', '9092')]


class Kafka_1_1_0_Test(KafkaTest):
COMPOSE_SERVICES = ['kafka_1_1_0']


class Kafka_0_10_2_Test(KafkaTest):
COMPOSE_SERVICES = ['kafka_0_10_2']

0 comments on commit 7635731

Please sign in to comment.