Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 82af80b

Browse files
authored
Merge pull request #394 from raintank/removeKafkaMdam
remove kafkamdam input plugin
2 parents a036c09 + cec9103 commit 82af80b

File tree

7 files changed

+2
-220
lines changed

7 files changed

+2
-220
lines changed

docs/config.md

-13
Original file line numberDiff line numberDiff line change
@@ -203,19 +203,6 @@ consumer-max-processing-time = 1s
203203
net-max-open-requests = 100
204204
```
205205

206-
### kafka-mdam input (optional, discouraged)
207-
208-
```
209-
[kafka-mdam-in]
210-
enabled = false
211-
# tcp address (may be given multiple times as a comma-separated list)
212-
brokers = kafka:9092
213-
# kafka topic (may be given multiple times as a comma-separated list)
214-
topics = mdam
215-
# consumer group name
216-
group = group1
217-
```
218-
219206
## clustering transports ##
220207
### kafka as transport for clustering messages (recommended)
221208

docs/inputs.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@ note: it does not implement [carbon2.0](http://metrics20.org/implementations/)
2424
## Kafka-mdm (recommended)
2525

2626
`mdm = MetricData Messagepack-encoded` [MetricData schema definition](https://github.com/raintank/schema/blob/master/metric.go#L20)
27-
This is a kafka input wherein each point is sent as a unique kafka message. This is the best way,
28-
even though we haven't gotten it to perform on par with kafka-mdam yet, but we expect to get there soon.
27+
This is a kafka input wherein each point is sent as a unique kafka message.
2928
This is the recommended input option if you want a queue.
3029

31-
## Kafka-mdam (experimental, discouraged)
3230

33-
`mdm = MetricDataArray Messagepack-encoded` [MetricDatayArray schema definition](https://github.com/raintank/schema/blob/master/metric.go#L47)
34-
This is a kafka input that uses application-level batches stored within single kafka messages.
35-
It is discouraged because this does not allow proper routing/partitioning of messages and will be removed.
36-
It only exists to compare performance numbers against kafka-mdm, and make mdm as fast as mdam.
37-
It also doesn't have the performance tuning options and offset control that has kafka-mdm has. (kafka-mdam always uses latest offset).

input/kafkamdam/kafkamdam.go

-157
This file was deleted.

metrictank-sample.ini

-11
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,6 @@ consumer-max-processing-time = 1s
172172
# How many outstanding requests a connection is allowed to have before sending on it blocks
173173
net-max-open-requests = 100
174174

175-
### kafka-mdam input (optional, discouraged)
176-
[kafka-mdam-in]
177-
enabled = false
178-
# tcp address (may be given multiple times as a comma-separated list)
179-
brokers = kafka:9092
180-
# kafka topic (may be given multiple times as a comma-separated list)
181-
topics = mdam
182-
# consumer group name
183-
group = group1
184-
185-
186175
## clustering transports ##
187176

188177
### kafka as transport for clustering messages (recommended)

metrictank.go

+1-9
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"github.com/raintank/metrictank/idx/memory"
3030
"github.com/raintank/metrictank/input"
3131
inCarbon "github.com/raintank/metrictank/input/carbon"
32-
inKafkaMdam "github.com/raintank/metrictank/input/kafkamdam"
3332
inKafkaMdm "github.com/raintank/metrictank/input/kafkamdm"
3433
"github.com/raintank/metrictank/mdata"
3534
"github.com/raintank/metrictank/mdata/chunk"
@@ -162,7 +161,6 @@ func main() {
162161
// load config for metric ingestors
163162
inCarbon.ConfigSetup()
164163
inKafkaMdm.ConfigSetup()
165-
inKafkaMdam.ConfigSetup()
166164

167165
// load config for cluster handlers
168166
notifierNsq.ConfigSetup()
@@ -214,12 +212,11 @@ func main() {
214212

215213
inCarbon.ConfigProcess()
216214
inKafkaMdm.ConfigProcess(*instance)
217-
inKafkaMdam.ConfigProcess(*instance)
218215
notifierNsq.ConfigProcess()
219216
notifierKafka.ConfigProcess(*instance)
220217
api.ConfigProcess()
221218

222-
if !inCarbon.Enabled && !inKafkaMdm.Enabled && !inKafkaMdam.Enabled {
219+
if !inCarbon.Enabled && !inKafkaMdm.Enabled {
223220
log.Fatal(4, "you should enable at least 1 input plugin")
224221
}
225222

@@ -315,11 +312,6 @@ func main() {
315312
inputs = append(inputs, inKafkaMdm.New(stats))
316313
}
317314

318-
if inKafkaMdam.Enabled {
319-
sarama.Logger = l.New(os.Stdout, "[Sarama] ", l.LstdFlags)
320-
inputs = append(inputs, inKafkaMdam.New(stats))
321-
}
322-
323315
accountingPeriod := dur.MustParseUNsec("accounting-period", *accountingPeriodStr)
324316

325317
metrics = mdata.NewAggMetrics(store, chunkSpan, numChunks, chunkMaxStale, metricMaxStale, ttl, gcInterval, finalSettings)

scripts/config/metrictank-docker.ini

-11
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,6 @@ consumer-max-processing-time = 1s
167167
# How many outstanding requests a connection is allowed to have before sending on it blocks
168168
net-max-open-requests = 100
169169

170-
### kafka-mdam input (optional, discouraged)
171-
[kafka-mdam-in]
172-
enabled = false
173-
# tcp address (may be given multiple times as a comma-separated list)
174-
brokers = kafka:9092
175-
# kafka topic (may be given multiple times as a comma-separated list)
176-
topics = mdam
177-
# consumer group name
178-
group = group1
179-
180-
181170
## clustering transports ##
182171

183172
### kafka as transport for clustering messages (recommended)

scripts/config/metrictank-package.ini

-11
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,6 @@ consumer-max-processing-time = 1s
155155
# How many outstanding requests a connection is allowed to have before sending on it blocks
156156
net-max-open-requests = 100
157157

158-
### kafka-mdam input (optional, discouraged)
159-
[kafka-mdam-in]
160-
enabled = false
161-
# tcp address (may be given multiple times as a comma-separated list)
162-
brokers = localhost:9092
163-
# kafka topic (may be given multiple times as a comma-separated list)
164-
topics = mdam
165-
# consumer group name
166-
group = group1
167-
168-
169158
## clustering transports ##
170159

171160
### kafka as transport for clustering messages (recommended)

0 commit comments

Comments
 (0)