diff --git a/kapacitor.go b/kapacitor.go index f960809372..666915a70b 100644 --- a/kapacitor.go +++ b/kapacitor.go @@ -140,7 +140,7 @@ type Talk struct{} // Kafka sends alerts to any Kafka brokers specified in the handler config type Kafka struct { Cluster string `json:"cluster"` - Topic string `json:"topic"` + Topic string `json:"kafka-topic"` Template string `json:"template"` } diff --git a/ui/src/kapacitor/components/handlers/KafkaHandler.tsx b/ui/src/kapacitor/components/handlers/KafkaHandler.tsx index 7ba9d09bac..fe2c732e3d 100644 --- a/ui/src/kapacitor/components/handlers/KafkaHandler.tsx +++ b/ui/src/kapacitor/components/handlers/KafkaHandler.tsx @@ -61,7 +61,7 @@ const KafkaHandler: SFC = ({ diff --git a/ui/src/kapacitor/constants/index.ts b/ui/src/kapacitor/constants/index.ts index 6e24f6aa33..074a2779c1 100644 --- a/ui/src/kapacitor/constants/index.ts +++ b/ui/src/kapacitor/constants/index.ts @@ -242,7 +242,7 @@ export const HANDLERS_TO_RULE_THEM_ALL: FieldsFromAllAlerts = { 'service', ], hipChat: ['room'], - kafka: ['id', 'cluster', 'topic', 'template'], + kafka: ['id', 'cluster', 'kafka-topic', 'template'], opsGenie: ['teams', 'recipients'], opsGenie2: ['teams', 'recipients'], pagerDuty: [],