Skip to content

Commit 347df35

Browse files
Kafka dashboard fix fields (elastic#4530)
* Kafka dashboard fix fields. * Remove deprecated fields from integration also, as done per beats#27938
1 parent 3ff42ba commit 347df35

File tree

10 files changed

+11
-85
lines changed

10 files changed

+11
-85
lines changed

packages/kafka/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.3.1"
3+
changes:
4+
- description: Update the datashoboard fields
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/4530
27
- version: "1.3.0"
38
changes:
49
- description: Added infrastructure category.

packages/kafka/data_stream/consumergroup/fields/fields.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
11
- name: kafka.consumergroup
22
type: group
33
fields:
4-
- name: broker
5-
type: group
6-
fields:
7-
- name: id
8-
type: long
9-
description: |
10-
Broker id
11-
- name: address
12-
type: keyword
13-
description: |
14-
Broker address
154
- name: id
165
type: keyword
176
description: Consumer Group ID
18-
- name: topic
19-
type: keyword
20-
description: Topic name
21-
- name: partition
22-
type: long
23-
description: Partition ID
247
- name: offset
258
type: long
269
description: consumer offset into partition being read

packages/kafka/data_stream/consumergroup/sample_event.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@
1212
},
1313
"kafka": {
1414
"consumergroup": {
15-
"topic": "messages",
1615
"error": {
1716
"code": 0
1817
},
19-
"broker": {
20-
"id": 0,
21-
"address": "kafka-01:9092"
22-
},
2318
"id": "console-consumer-99447",
2419
"offset": -1,
2520
"consumer_lag": 112,
@@ -28,7 +23,6 @@
2823
"id": "consumer-console-consumer-99447-1",
2924
"host": "127.0.0.1"
3025
},
31-
"partition": 0,
3226
"meta": ""
3327
},
3428
"broker": {

packages/kafka/data_stream/partition/fields/fields.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,10 @@
1515
- name: partition
1616
type: group
1717
fields:
18-
- name: id
19-
type: long
20-
description: |
21-
Partition id.
2218
- name: leader
2319
type: long
2420
description: |
2521
Leader id (broker).
26-
- name: isr
27-
type: keyword
28-
description: |
29-
List of isr ids.
3022
- name: replica
3123
type: long
3224
description: |
@@ -42,20 +34,4 @@
4234
- name: error.code
4335
type: long
4436
description: |
45-
Error code from fetching partition.
46-
- name: topic.error.code
47-
type: long
48-
description: |
49-
topic error code.
50-
- name: topic.name
51-
type: keyword
52-
description: |
53-
Topic name
54-
- name: broker.id
55-
type: long
56-
description: |
57-
Broker id
58-
- name: broker.address
59-
type: keyword
60-
description: |
61-
Broker address
37+
Error code from fetching partition.

packages/kafka/data_stream/partition/sample_event.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,9 @@
1717
"id": 0,
1818
"topic_id": "0-messages",
1919
"topic_broker_id": "0-messages-0",
20-
"topic": {
21-
"name": "messages"
22-
},
23-
"broker": {
24-
"id": 0,
25-
"address": "kafka-01:9092"
26-
},
2720
"partition": {
2821
"is_leader": true,
2922
"insync_replica": true,
30-
"id": 0,
3123
"leader": 0,
3224
"replica": 0
3325
}

packages/kafka/docs/README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,9 @@ An example event for `consumergroup` looks as following:
216216
},
217217
"kafka": {
218218
"consumergroup": {
219-
"topic": "messages",
220219
"error": {
221220
"code": 0
222221
},
223-
"broker": {
224-
"id": 0,
225-
"address": "kafka-01:9092"
226-
},
227222
"id": "console-consumer-99447",
228223
"offset": -1,
229224
"consumer_lag": 112,
@@ -232,7 +227,6 @@ An example event for `consumergroup` looks as following:
232227
"id": "consumer-console-consumer-99447-1",
233228
"host": "127.0.0.1"
234229
},
235-
"partition": 0,
236230
"meta": ""
237231
},
238232
"broker": {
@@ -306,8 +300,6 @@ An example event for `consumergroup` looks as following:
306300
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
307301
| kafka.broker.address | Broker advertised address | keyword |
308302
| kafka.broker.id | Broker id | long |
309-
| kafka.consumergroup.broker.address | Broker address | keyword |
310-
| kafka.consumergroup.broker.id | Broker id | long |
311303
| kafka.consumergroup.client.host | Client host | keyword |
312304
| kafka.consumergroup.client.id | Client ID (kafka setting client.id) | keyword |
313305
| kafka.consumergroup.client.member_id | internal consumer group member ID | keyword |
@@ -316,8 +308,6 @@ An example event for `consumergroup` looks as following:
316308
| kafka.consumergroup.id | Consumer Group ID | keyword |
317309
| kafka.consumergroup.meta | custom consumer meta data string | keyword |
318310
| kafka.consumergroup.offset | consumer offset into partition being read | long |
319-
| kafka.consumergroup.partition | Partition ID | long |
320-
| kafka.consumergroup.topic | Topic name | keyword |
321311
| kafka.partition.id | Partition id. | long |
322312
| kafka.partition.topic_broker_id | Unique id of the partition in the topic and the broker. | keyword |
323313
| kafka.partition.topic_id | Unique id of the partition in the topic. | keyword |
@@ -351,17 +341,9 @@ An example event for `partition` looks as following:
351341
"id": 0,
352342
"topic_id": "0-messages",
353343
"topic_broker_id": "0-messages-0",
354-
"topic": {
355-
"name": "messages"
356-
},
357-
"broker": {
358-
"id": 0,
359-
"address": "kafka-01:9092"
360-
},
361344
"partition": {
362345
"is_leader": true,
363346
"insync_replica": true,
364-
"id": 0,
365347
"leader": 0,
366348
"replica": 0
367349
}
@@ -436,20 +418,14 @@ An example event for `partition` looks as following:
436418
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
437419
| kafka.broker.address | Broker advertised address | keyword |
438420
| kafka.broker.id | Broker id | long |
439-
| kafka.partition.broker.address | Broker address | keyword |
440-
| kafka.partition.broker.id | Broker id | long |
441421
| kafka.partition.id | Partition id. | long |
442422
| kafka.partition.offset.newest | Newest offset of the partition. | long |
443423
| kafka.partition.offset.oldest | Oldest offset of the partition. | long |
444424
| kafka.partition.partition.error.code | Error code from fetching partition. | long |
445-
| kafka.partition.partition.id | Partition id. | long |
446425
| kafka.partition.partition.insync_replica | Indicates if replica is included in the in-sync replicate set (ISR). | boolean |
447426
| kafka.partition.partition.is_leader | Indicates if replica is the leader | boolean |
448-
| kafka.partition.partition.isr | List of isr ids. | keyword |
449427
| kafka.partition.partition.leader | Leader id (broker). | long |
450428
| kafka.partition.partition.replica | Replica id (broker). | long |
451-
| kafka.partition.topic.error.code | topic error code. | long |
452-
| kafka.partition.topic.name | Topic name | keyword |
453429
| kafka.partition.topic_broker_id | Unique id of the partition in the topic and the broker. | keyword |
454430
| kafka.partition.topic_id | Unique id of the partition in the topic. | keyword |
455431
| kafka.topic.error.code | Topic error code. | long |

packages/kafka/kibana/visualization/kafka-587f2360-8f21-11e8-8fa2-3d5f811fbd0f.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"line_width": "1",
3535
"metrics": [
3636
{
37-
"field": "kafka.consumergroup.partition",
37+
"field": "kafka.partition.id",
3838
"id": "61ca57f2-469d-11e7-af02-69e470af7417",
3939
"type": "sum"
4040
},

packages/kafka/kibana/visualization/kafka-944188f0-8e79-11e8-8fa2-3d5f811fbd0f.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"default_timefield": "@timestamp",
3434
"filter": {
3535
"language": "lucene",
36-
"query": "(metricset.name: consumergroup) AND NOT kafka.consumergroup.topic.name:__consumer_offsets"
36+
"query": "(metricset.name: consumergroup) AND NOT kafka.topic.name:__consumer_offsets"
3737
},
3838
"gauge_color_rules": [
3939
{
@@ -69,7 +69,7 @@
6969
"split_color_mode": "rainbow",
7070
"split_mode": "terms",
7171
"stacked": "none",
72-
"terms_field": "kafka.consumergroup.topic",
72+
"terms_field": "kafka.topic.name",
7373
"type": "timeseries"
7474
}
7575
],

packages/kafka/kibana/visualization/kafka-dc89f8d0-8e8e-11e8-8fa2-3d5f811fbd0f.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"id": "3",
8585
"params": {
8686
"customLabel": "Brokers",
87-
"field": "kafka.partition.broker.id"
87+
"field": "kafka.broker.id"
8888
},
8989
"schema": "metric",
9090
"type": "cardinality"

packages/kafka/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: kafka
33
title: Kafka
4-
version: 1.3.0
4+
version: 1.3.1
55
license: basic
66
description: Collect logs and metrics from Kafka servers with Elastic Agent.
77
type: integration

0 commit comments

Comments
 (0)