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 15 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
9 changes: 6 additions & 3 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 Down Expand Up @@ -162,6 +162,9 @@ services:
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 @@ -262,7 +265,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 @@ -271,7 +274,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 @@ -14855,6 +14855,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: long

--

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

type: long

--

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

type: long

--

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

type: long

--

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

type: long

--

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

type: long

--

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

type: long

--

*`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: long

--

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

type: long

--

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

type: long

--

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

type: long

--

[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: long

--

[float]
=== consumergroup

Expand Down Expand Up @@ -15150,6 +15342,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: long

--

*`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: long

--

*`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: long

--

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

Expand Down
Loading