Merge pull request #3501 from influxdata/fixes/saving-topic-kafka
Fixes topic saving for kafka handlerpull/10616/head
commit
6a650260af
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ const KafkaHandler: SFC<Props> = ({
|
|||
<HandlerInput
|
||||
selectedHandler={handler}
|
||||
handleModifyHandler={handleModifyHandler}
|
||||
fieldName="topic"
|
||||
fieldName="kafka-topic"
|
||||
fieldDisplay="Topic"
|
||||
placeholder=""
|
||||
/>
|
||||
|
|
|
@ -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: [],
|
||||
|
|
Loading…
Reference in New Issue