-
Notifications
You must be signed in to change notification settings - Fork 446
/
Copy pathxinfra-monitor.properties
197 lines (184 loc) · 8.72 KB
/
xinfra-monitor.properties
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# Copyright 2016 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# This properties file specifies the tests/services that XinfraMonitor
# should instantiate and run, together with the key/value pairs used to
# configure these tests/services. It should have the following format:
#
# {
# "name1" : {
# "type": TestClassName
# "key1": value1,
# "key2": value2,
# ...
# },
# "name2" : {
# "type": ServiceClassName
# "key1": value1,
# "key2": value2,
# ...
# },
# ...
# }
#
# TestClassName can be canonical name or simple name of any class that implements
# interface com.linkedin.kmf.services.Test. These classes should be under
# package com.linkedin.kmf.tests.
#
# ServiceClassName can be canonical name or simple name of any class that implements
# interface com.linkedin.kmf.services.Service. These classes should be under
# package com.linkedin.kmf.services.
#
# Each test/service should be configured with class.name which can be either TestClassName
# or ServiceClassName. The key for the test/service in the json map is used as name to
# identify the test/service in the log or JMX metrics, which is useful if multiple
# test/service with the same class.name are run in the same Kafka Monitor process.
#
# If using Secure Socket Layer for security protocol, SSL properties must be defined under
# produce.producer.props, consume.consumer.props, as well as single-cluster-monitor props
{
"single-cluster-monitor": {
"class.name": "com.linkedin.xinfra.monitor.apps.SingleClusterMonitor",
"topic": "xinfra-monitor-topic",
"zookeeper.connect": "localhost:2181",
"bootstrap.servers": "localhost:9092,localhost:9093",
"request.timeout.ms": 9000,
"produce.record.delay.ms": 100,
"topic-management.topicManagementEnabled": true,
"topic-management.topicCreationEnabled": true,
"topic-management.replicationFactor" : 1,
"topic-management.partitionsToBrokersRatio" : 2.0,
"topic-management.rebalance.interval.ms" : 600000,
"topic-management.preferred.leader.election.check.interval.ms" : 300000,
"topic-management.topicFactory.props": {
},
"topic-management.topic.props": {
"retention.ms": "3600000"
},
"produce.producer.props": {
"client.id": "kmf-client-id"
},
"consume.latency.sla.ms": "20000",
"consume.consumer.props": {
}
},
"offset-commit-service": {
"class.name": "com.linkedin.xinfra.monitor.services.OffsetCommitService",
"zookeeper.connect": "localhost:2181",
"bootstrap.servers": "localhost:9092,localhost:9093",
"consumer.props": {
"group.id": "target-consumer-group"
}
},
"jolokia-service": {
"class.name": "com.linkedin.xinfra.monitor.services.JolokiaService"
},
"reporter-service": {
"class.name": "com.linkedin.xinfra.monitor.services.DefaultMetricsReporterService",
"report.interval.sec": 1,
"report.metrics.list": [
"kmf:type=kafka-monitor:offline-runnable-count",
"kmf.services:type=produce-service,name=*:produce-availability-avg",
"kmf.services:type=consume-service,name=*:consume-availability-avg",
"kmf.services:type=produce-service,name=*:records-produced-total",
"kmf.services:type=consume-service,name=*:records-consumed-total",
"kmf.services:type=produce-service,name=*:records-produced-rate",
"kmf.services:type=produce-service,name=*:produce-error-rate",
"kmf.services:type=consume-service,name=*:consume-error-rate",
"kmf.services:type=consume-service,name=*:records-lost-total",
"kmf.services:type=consume-service,name=*:records-lost-rate",
"kmf.services:type=consume-service,name=*:records-duplicated-total",
"kmf.services:type=consume-service,name=*:records-delay-ms-avg",
"kmf.services:type=commit-availability-service,name=*:offsets-committed-avg",
"kmf.services:type=commit-availability-service,name=*:offsets-committed-total",
"kmf.services:type=commit-availability-service,name=*:failed-commit-offsets-avg",
"kmf.services:type=commit-availability-service,name=*:failed-commit-offsets-total",
"kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-avg",
"kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-max",
"kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-99th",
"kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-999th",
"kmf.services:type=commit-latency-service,name=*:commit-offset-latency-ms-9999th",
"kmf.services:type=cluster-topic-manipulation-service,name=*:topic-creation-metadata-propagation-ms-avg",
"kmf.services:type=cluster-topic-manipulation-service,name=*:topic-creation-metadata-propagation-ms-max",
"kmf.services:type=cluster-topic-manipulation-service,name=*:topic-deletion-metadata-propagation-ms-avg",
"kmf.services:type=cluster-topic-manipulation-service,name=*:topic-deletion-metadata-propagation-ms-max",
"kmf.services:type=offset-commit-service,name=*:offset-commit-availability-avg",
"kmf.services:type=offset-commit-service,name=*:offset-commit-service-success-rate",
"kmf.services:type=offset-commit-service,name=*:offset-commit-service-success-total",
"kmf.services:type=offset-commit-service,name=*:offset-commit-service-failure-rate",
"kmf.services:type=offset-commit-service,name=*:offset-commit-service-failure-total"
]
},
"cluster-topic-manipulation-service":{
"class.name":"com.linkedin.xinfra.monitor.services.ClusterTopicManipulationService",
"zookeeper.connect": "localhost:2181",
"bootstrap.servers":"localhost:9092,localhost:9093",
"topic": "xinfra-monitor-topic"
},
# Example produce-service to produce messages to cluster
# "produce-service": {
# "class.name": "com.linkedin.kmf.services.ProduceService",
# "topic": "xinfra-monitor-topic",
# "zookeeper.connect": "localhost:2181",
# "bootstrap.servers": "localhost:9092",
# "consume.latency.sla.ms": "20000",
# "consume.consumer.props": {
# }
# },
# Example consume-service to consume messages
# "consume-service": {
# "class.name": "com.linkedin.kmf.services.ConsumeService",
# "topic": "xinfra-monitor-topic",
# "zookeeper.connect": "localhost:2181",
# "bootstrap.servers": "localhost:9092",
# "consume.latency.sla.ms": "20000",
# "consume.consumer.props": {
# }
# },
# Example statsd-service to report metrics
# "statsd-service": {
# "class.name": "com.linkedin.xinfra.monitor.services.StatsdMetricsReporterService",
# "report.statsd.host": "localhost",
# "report.statsd.port": "8125",
# "report.statsd.prefix": "xinfra-monitor",
# "report.interval.sec": 1,
# "report.metrics.list": [
# "kmf.services:type=produce-service,name=*:produce-availability-avg",
# "kmf.services:type=consume-service,name=*:consume-availability-avg"
# ]
# },
# Example kafka-service to report metrics
"reporter-kafka-service": {
"class.name": "com.linkedin.xinfra.monitor.services.KafkaMetricsReporterService",
"report.interval.sec": 3,
"zookeeper.connect": "localhost:2181",
"bootstrap.servers": "localhost:9092",
"topic": "xinfra-monitor-topic-metrics",
"report.kafka.topic.replication.factor": 1,
"report.metrics.list": [
"kmf.services:type=produce-service,name=*:produce-availability-avg",
"kmf.services:type=consume-service,name=*:consume-availability-avg",
"kmf.services:type=produce-service,name=*:records-produced-total",
"kmf.services:type=consume-service,name=*:records-consumed-total",
"kmf.services:type=consume-service,name=*:records-lost-total",
"kmf.services:type=consume-service,name=*:records-duplicated-total",
"kmf.services:type=consume-service,name=*:records-delay-ms-avg",
"kmf.services:type=produce-service,name=*:records-produced-rate",
"kmf.services:type=produce-service,name=*:produce-error-rate",
"kmf.services:type=consume-service,name=*:consume-error-rate"
]
}
# Example signalfx-service to report metrics
# "signalfx-service": {
# "class.name": "com.linkedin.kmf.services.SignalFxMetricsReporterService",
# "report.interval.sec": 1,
# "report.metric.dimensions": {
# },
# "report.signalfx.url": "",
# "report.signalfx.token" : ""
# }
}