forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkafka.conf
109 lines (94 loc) · 3.14 KB
/
kafka.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[[inputs.jolokia2_agent]]
name_prefix = "kafka_"
## If you intend to use "non_negative_derivative(1s)" with "*.count" fields, you don't need precalculated fields.
# fielddrop = [
# "*.EventType",
# "*.FifteenMinuteRate",
# "*.FiveMinuteRate",
# "*.MeanRate",
# "*.OneMinuteRate",
# "*.RateUnit",
# "*.LatencyUnit",
# "*.50thPercentile",
# "*.75thPercentile",
# "*.95thPercentile",
# "*.98thPercentile",
# "*.99thPercentile",
# "*.999thPercentile",
# "*.Min",
# "*.Mean",
# "*.Max",
# "*.StdDev"
# ]
## jolokia_agent_url tag is not needed if you have only one instance of Kafka on the server.
# tagexclude = ["jolokia_agent_url"]
urls = ["http://localhost:8080/jolokia"]
[[inputs.jolokia2_agent.metric]]
name = "controller"
mbean = "kafka.controller:name=*,type=*"
field_prefix = "$1."
[[inputs.jolokia2_agent.metric]]
name = "replica_manager"
mbean = "kafka.server:name=*,type=ReplicaManager"
field_prefix = "$1."
[[inputs.jolokia2_agent.metric]]
name = "purgatory"
mbean = "kafka.server:delayedOperation=*,name=*,type=DelayedOperationPurgatory"
field_prefix = "$1."
field_name = "$2"
[[inputs.jolokia2_agent.metric]]
name = "zookeeper"
mbean = "kafka.server:name=*,type=SessionExpireListener"
field_prefix = "$1."
[[inputs.jolokia2_agent.metric]]
name = "user"
mbean = "kafka.server:user=*,type=Request"
field_prefix = ""
tag_keys = ["user"]
[[inputs.jolokia2_agent.metric]]
name = "request"
mbean = "kafka.network:name=*,request=*,type=RequestMetrics"
field_prefix = "$1."
tag_keys = ["request"]
[[inputs.jolokia2_agent.metric]]
name = "topics"
mbean = "kafka.server:name=*,type=BrokerTopicMetrics"
field_prefix = "$1."
[[inputs.jolokia2_agent.metric]]
name = "topic"
mbean = "kafka.server:name=*,topic=*,type=BrokerTopicMetrics"
field_prefix = "$1."
tag_keys = ["topic"]
[[inputs.jolokia2_agent.metric]]
name = "partition"
mbean = "kafka.log:name=*,partition=*,topic=*,type=Log"
field_name = "$1"
tag_keys = ["topic", "partition"]
[[inputs.jolokia2_agent.metric]]
name = "partition"
mbean = "kafka.cluster:name=UnderReplicated,partition=*,topic=*,type=Partition"
field_name = "UnderReplicatedPartitions"
tag_keys = ["topic", "partition"]
## If you have multiple instances of Kafka on the server, use 'jolokia_agent_url' as identity of each instance
# [[processors.rename]]
# namepass = ["kafka_*"]
# order = 1
# [[processors.rename.replace]]
# tag = "jolokia_agent_url"
# dest = "instance"
#
# [[processors.regex]]
# namepass = ["kafka_*"]
# order = 2
# [[processors.regex.tags]]
# key = "instance"
# pattern = "^.+:8080/.+$"
# replacement = "0"
# [[processors.regex.tags]]
# key = "instance"
# pattern = "^.+:8081/.+$"
# replacement = "1"
# [[processors.regex.tags]]
# key = "instance"
# pattern = "^.+:8082/.+$"
# replacement = "2"