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

Commit

Permalink
kafkaVersion should be in semver format
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsaj committed Oct 23, 2018
1 parent 0feecad commit c5367b1
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions docker/docker-chaos/metrictank.ini
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ enabled = true
org-id = 0
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -324,8 +324,8 @@ dns-config-path = /etc/resolv.conf
enabled = true
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-cluster/metrictank.ini
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ enabled = true
org-id = 0
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -324,8 +324,8 @@ dns-config-path = /etc/resolv.conf
enabled = true
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-dev-custom-cfg-kafka/metrictank.ini
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ enabled = true
org-id = 1
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -324,8 +324,8 @@ dns-config-path = /etc/resolv.conf
enabled = true
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down
8 changes: 4 additions & 4 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ enabled = false
org-id = 0
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -385,8 +385,8 @@ dns-config-path = /etc/resolv.conf
enabled = false
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down
2 changes: 1 addition & 1 deletion input/kafkamdm/kafkamdm.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func ConfigSetup() {
inKafkaMdm.BoolVar(&Enabled, "enabled", false, "")
inKafkaMdm.UintVar(&orgId, "org-id", 0, "For incoming MetricPoint messages without org-id, assume this org id")
inKafkaMdm.StringVar(&brokerStr, "brokers", "kafka:9092", "tcp address for kafka (may be be given multiple times as a comma-separated list)")
inKafkaMdm.StringVar(&kafkaVersionStr, "kafka-version", "V0_10_0_0", "Kafka version. All brokers must be this version or newer.")
inKafkaMdm.StringVar(&kafkaVersionStr, "kafka-version", "0.10.0.0", "Kafka version in semver format. All brokers must be this version or newer.")
inKafkaMdm.StringVar(&topicStr, "topics", "mdm", "kafka topic (may be given multiple times as a comma-separated list)")
inKafkaMdm.StringVar(&offsetStr, "offset", "last", "Set the offset to start consuming from. Can be one of newest, oldest,last or a time duration")
inKafkaMdm.StringVar(&partitionStr, "partitions", "*", "kafka partitions to consume. use '*' or a comma separated list of id's")
Expand Down
2 changes: 1 addition & 1 deletion mdata/notifierKafka/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func init() {
fs := flag.NewFlagSet("kafka-cluster", flag.ExitOnError)
fs.BoolVar(&Enabled, "enabled", false, "")
fs.StringVar(&brokerStr, "brokers", "kafka:9092", "tcp address for kafka (may be given multiple times as comma separated list)")
fs.StringVar(&kafkaVersionStr, "kafka-version", "V0_10_0_0", "Kafka version. All brokers must be this version or newer.")
fs.StringVar(&kafkaVersionStr, "kafka-version", "0.10.0.0", "Kafka version in semver format. All brokers must be this version or newer.")
fs.StringVar(&topic, "topic", "metricpersist", "kafka topic")
fs.StringVar(&partitionStr, "partitions", "*", "kafka partitions to consume. use '*' or a comma separated list of id's. This should match the partitions used for kafka-mdm-in")
fs.StringVar(&offsetStr, "offset", "last", "Set the offset to start consuming from. Can be one of newest, oldest,last or a time duration")
Expand Down
8 changes: 4 additions & 4 deletions metrictank-sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ enabled = false
org-id = 0
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -327,8 +327,8 @@ dns-config-path = /etc/resolv.conf
enabled = false
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down
8 changes: 4 additions & 4 deletions scripts/config/metrictank-docker.ini
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ enabled = false
org-id = 0
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -324,8 +324,8 @@ dns-config-path = /etc/resolv.conf
enabled = false
# tcp address (may be given multiple times as a comma-separated list)
brokers = kafka:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down
8 changes: 4 additions & 4 deletions scripts/config/metrictank-package.ini
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ enabled = false
org-id = 0
# tcp address (may be given multiple times as a comma-separated list)
brokers = localhost:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (may be given multiple times as a comma-separated list)
topics = mdm
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
Expand Down Expand Up @@ -324,8 +324,8 @@ dns-config-path = /etc/resolv.conf
enabled = false
# tcp address (may be given multiple times as a comma-separated list)
brokers = localhost:9092
# Kafka version. All brokers must be this version or newer.
kafka-version = V0_10_0_0
# Kafka version in semver format. All brokers must be this version or newer.
kafka-version = 0.10.0.0
# kafka topic (only one)
topic = metricpersist
# kafka partitions to consume. use '*' or a comma separated list of id's. Should match kafka-mdm-in's partitions.
Expand Down

0 comments on commit c5367b1

Please sign in to comment.