Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Add Kafka JMX metricsets #14330

Merged
merged 33 commits into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
12b3c58
Add kafka borker light module
ChrsMark Oct 30, 2019
cc25ce9
Add docker files
ChrsMark Oct 30, 2019
84ceb2a
fix config files
ChrsMark Oct 30, 2019
e9a26b0
Add producer tasks in docker env
ChrsMark Oct 31, 2019
10de02c
Add producer metricset
ChrsMark Oct 31, 2019
0f17f51
Add cosumer task in docker env
ChrsMark Oct 31, 2019
6f24a77
Add consumer metricset
ChrsMark Oct 31, 2019
e6bc8db
Fix back run script
ChrsMark Oct 31, 2019
5ea1c60
Add fields
ChrsMark Nov 1, 2019
c2da3a3
Add docs
ChrsMark Nov 1, 2019
e98ee2f
Move kafka jmx to oss
ChrsMark Nov 12, 2019
9426d3f
Add go files
ChrsMark Nov 12, 2019
6febb14
Merge remote-tracking branch 'upstream/master' into add_kafka_broker_jmx
ChrsMark Nov 15, 2019
7006b14
Remove go files and update docs and list.go
ChrsMark Nov 15, 2019
3543af0
Add extra docs
ChrsMark Nov 15, 2019
100b68c
Address review comments
ChrsMark Nov 15, 2019
923bb3d
Add changelog entry
ChrsMark Nov 15, 2019
223cc43
Merge remote-tracking branch 'upstream/master' into add_kafka_broker_jmx
ChrsMark Nov 15, 2019
e749669
Merge remote-tracking branch 'upstream/master' into add_kafka_broker_jmx
ChrsMark Nov 18, 2019
77d65fb
Remove congig.reference file
ChrsMark Nov 18, 2019
a427180
Define port in Kafka integration tests
ChrsMark Nov 18, 2019
045bac1
fix remaining ports
ChrsMark Nov 18, 2019
1b5b1a5
Fix healthcheck script in Kafka container
ChrsMark Nov 18, 2019
e251525
Comment out extra jolokia exposed ports
ChrsMark Nov 19, 2019
6d4971b
Add less aggressive kafka producer
ChrsMark Nov 19, 2019
e3a02e5
Merge remote-tracking branch 'upstream/master' into add_kafka_broker_jmx
ChrsMark Nov 20, 2019
ffcbaa6
Add back jolokia ports in docker
ChrsMark Nov 20, 2019
fbba3dd
Fix config ports
ChrsMark Nov 20, 2019
2dfa5b8
Increase number of retries in healthcheck
ChrsMark Nov 20, 2019
1209c62
Update docker image version
ChrsMark Nov 20, 2019
10f982d
Update x-pack configs
ChrsMark Nov 20, 2019
2e5437b
Increase tests' timeout
ChrsMark Nov 20, 2019
54b58c2
Fix fields' type
ChrsMark Nov 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Release aws ebs metricset as GA. {pull}14312[14312] {issue}14060[14060]
- Add `connection.state` field for RabbitMQ module. {pull}13981[13981]
- Add more TCP states to Metricbeat system socket_summary. {pull}14347[14347]
- Add Kafka JMX metricsets. {pull}14330[14330]
- Add metrics to envoyproxy server metricset and support for envoy proxy 1.12. {pull}14416[14416] {issue}13642[13642]

*Packetbeat*
Expand Down
11 changes: 7 additions & 4 deletions metricbeat/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ services:

haproxy:
image: docker.elastic.co/observability-ci/beats-integration-haproxy:${HAPROXY_VERSION:-1.8}-1
build:
build:
context: ./module/haproxy/_meta
args:
HAPROXY_VERSION: ${HAPROXY_VERSION:-1.8}
Expand All @@ -155,13 +155,16 @@ services:
- 8778

kafka:
image: docker.elastic.co/observability-ci/beats-integration-kafka:${KAFKA_VERSION:-2.1.1}-1
image: docker.elastic.co/observability-ci/beats-integration-kafka:${KAFKA_VERSION:-2.1.1}-2
build:
context: ./module/kafka/_meta
args:
KAFKA_VERSION: ${KAFKA_VERSION:-2.1.1}
ports:
- 9092
- 8779
- 8775
- 8774

kibana:
image: docker.elastic.co/observability-ci/beats-integration-kibana:${KIBANA_VERSION:-7.4.0}-1
Expand Down Expand Up @@ -253,7 +256,7 @@ services:

nginx:
image: docker.elastic.co/observability-ci/beats-integration-nginx:${NGINX_VERSION:-1.9}-1
build:
build:
context: ./module/nginx/_meta
args:
NGINX_VERSION: ${NGINX_VERSION:-1.9}
Expand All @@ -262,7 +265,7 @@ services:

phpfpm:
image: docker.elastic.co/observability-ci/beats-integration-phpfpm:${PHPFPM_VERSION:-7.1}-1
build:
build:
context: ./module/php_fpm/_meta
args:
PHPFPM_VERSION: ${PHPFPM_VERSION:-7.1}
Expand Down
324 changes: 324 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14992,6 +14992,198 @@ type: keyword

--

[float]
=== broker

Broker metrics from Kafka Broker JMX


*`kafka.broker.mbean`*::
+
--
Mbean that this event is related to

type: keyword

--

*`kafka.broker.request.channel.queue.size`*::
+
--
The size of the request queue

type: long

--

*`kafka.broker.request.produce.failed_per_second`*::
+
--
The rate of failed produce requests per second

type: float

--

*`kafka.broker.request.fetch.failed_per_second`*::
+
--
The rate of client fetch request failures per second

type: float

--

*`kafka.broker.replication.leader_elections`*::
+
--
The leader election rate

type: float

--

*`kafka.broker.replication.unclean_leader_elections`*::
+
--
The unclean leader election rate

type: float

--

*`kafka.broker.session.zookeeper.disconnect`*::
+
--
The ZooKeeper closed sessions per second

type: float

--

*`kafka.broker.session.zookeeper.expire`*::
+
--
The ZooKeeper expired sessions per second

type: float

--

*`kafka.broker.session.zookeeper.readonly`*::
+
--
The ZooKeeper readonly sessions per second

type: float

--

*`kafka.broker.session.zookeeper.sync`*::
+
--
The ZooKeeper client connections per second

type: float

--

*`kafka.broker.log.flush_rate`*::
+
--
The log flush rate

type: float

--

*`kafka.broker.topic.net.bytes_in`*::
+
--
The incoming byte rate

type: float

--

*`kafka.broker.topic.net.bytes_out`*::
+
--
The outgoing byte rate

type: float

--

*`kafka.broker.topic.net.bytes_rejected`*::
+
--
The rejected byte rate

type: float

--

*`kafka.broker.topic.messages_in`*::
+
--
The incoming message rate

type: float

--

[float]
=== consumer

Consumer metrics from Kafka Consumer JMX


*`kafka.consumer.mbean`*::
+
--
Mbean that this event is related to

type: keyword

--

*`kafka.consumer.fetch_rate`*::
+
--
The minimum rate at which the consumer sends fetch requests to a broker

type: float

--

*`kafka.consumer.bytes_consumed`*::
+
--
The average number of bytes consumed for a specific topic per second

type: float

--

*`kafka.consumer.records_consumed`*::
+
--
The average number of records consumed per second for a specific topic

type: float

--

*`kafka.consumer.bytes_in`*::
+
--
The rate of bytes coming in to the consumer

type: float

--

[float]
=== consumergroup

Expand Down Expand Up @@ -15287,6 +15479,138 @@ type: keyword

--

[float]
=== producer

Producer metrics from Kafka Producer JMX


*`kafka.producer.mbean`*::
+
--
Mbean that this event is related to

type: keyword

--

*`kafka.producer.available_buffer_bytes`*::
+
--
The total amount of buffer memory

type: float

--

*`kafka.producer.batch_size_avg`*::
+
--
The average number of bytes sent

type: float

--

*`kafka.producer.batch_size_max`*::
+
--
The maximum number of bytes sent

type: long

--

*`kafka.producer.record_send_rate`*::
+
--
The average number of records sent per second

type: float

--

*`kafka.producer.record_retry_rate`*::
+
--
The average number of retried record sends per second

type: float

--

*`kafka.producer.record_error_rate`*::
+
--
The average number of retried record sends per second

type: float

--

*`kafka.producer.records_per_request`*::
+
--
The average number of records sent per second

type: float

--

*`kafka.producer.record_size_avg`*::
+
--
The average record size

type: float

--

*`kafka.producer.record_size_max`*::
+
--
The maximum record size

type: long

--

*`kafka.producer.request_rate`*::
+
--
The number of producer requests per second

type: float

--

*`kafka.producer.response_rate`*::
+
--
The number of producer responses per second

type: float

--

*`kafka.producer.io_wait`*::
+
--
The producer I/O wait time

type: float

--

*`kafka.producer.bytes_out`*::
+
--
The rate of bytes going out for the producer

type: float

--

[[exported-fields-kibana]]
== Kibana fields

Expand Down
Loading