-
Notifications
You must be signed in to change notification settings - Fork 3
/
kafka-connectors-values.yaml
353 lines (345 loc) · 14.6 KB
/
kafka-connectors-values.yaml
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
#======================================================================================
# Kafka Connectors configuration settings
#======================================================================================
#--------------------------------------------------------------------------------------
# Configuration parameters used to create kafka connectors to sync data from Kafka topics
# to MongoDB collections.
#
# Ref: https://docs.confluent.io/platform/current/connect/index.html#connect-connectors
#--------------------------------------------------------------------------------------
clusterName: "kafka-connect"
connectorClass: "com.mongodb.kafka.connect.MongoSinkConnector"
tasksMax: 1
#--------------------------------------------------------------------------------------
# Kafka Connectors are grouped by application. Apps with the corresponding environment variable
# equal to true are create or updated.
# - ode
# - geojsonconverter
# - conflictmonitor
#
# Some Kafka topics have a non-duplicated topic and a duplicated topic. The duplicated topic will
# used if the deduplicator is not enabled.
# IF env var: KAFKA_TOPIC_CREATE_DEDUPLICATOR = true
# - deduplicator
# ELSE
# - ode_duplicated
# - geojsonconverter_duplicated
#
# The Kafka Connectors have the following configuration settings:
# Required settings:
# - topicName: The name of the Kafka topic to read from
# - collectionName: The name of the MongoDB collection to write to
# Optional settings:
# - generateTimestamp: If true, the connector will add a timestamp field to the document
# - connectorName: The name of the connector
# - useTimestamp: converts the "timestampField" field at the top level of the value to a BSON date
# - timestampField: The name of the timestamp field
# - useKey: If true, the connector will use the "keyField" as the document _id in MongoDB
# - keyField: The name of the key field
#
#--------------------------------------------------------------------------------------
apps:
ode:
name: jpo-ode
connectors:
- topicName: topic.OdeRawEncodedBSMJson
collectionName: OdeRawEncodedBSMJson
generateTimestamp: true
- topicName: topic.OdeRawEncodedMAPJson
collectionName: OdeRawEncodedMAPJson
generateTimestamp: true
- topicName: topic.OdeRawEncodedSPATJson
collectionName: OdeRawEncodedSPATJson
generateTimestamp: true
- topicName: topic.OdeSpatJson
collectionName: OdeSpatJson
generateTimestamp: true
- topicName: topic.OdeTimJsonTMCFiltered
collectionName: OdeTimJsonTMCFiltered
generateTimestamp: true
- topicName: topic.OdeTimBroadcastJson
collectionName: OdeTimBroadcastJson
generateTimestamp: true
- topicName: topic.OdeTIMCertExpirationTimeJson
collectionName: OdeTIMCertExpirationTimeJson
generateTimestamp: true
- topicName: topic.OdeRawEncodedPSMJson
collectionName: OdeRawEncodedPSMJson
generateTimestamp: true
- topicName: topic.OdePsmJson
collectionName: OdePsmJson
generateTimestamp: true
- topicName: topic.OdeRawEncodedSRMJson
collectionName: OdeRawEncodedSRMJson
generateTimestamp: true
- topicName: topic.OdeSrmJson
collectionName: OdeSrmJson
generateTimestamp: true
- topicName: topic.OdeRawEncodedSSMJson
collectionName: OdeRawEncodedSSMJson
generateTimestamp: true
- topicName: topic.OdeSsmJson
collectionName: OdeSsmJson
generateTimestamp: true
- topicName: topic.OdeDriverAlertJson
collectionName: OdeDriverAlertJson
generateTimestamp: true
ode_duplicated:
name: ode-duplicated
connectors:
- topicName: topic.OdeMapJson
collectionName: OdeMapJson
generateTimestamp: true
- topicName: topic.OdeTimJson
collectionName: OdeTimJson
generateTimestamp: true
- topicName: topic.OdeBsmJson
collectionName: OdeBsmJson
generateTimestamp: true
- topicName: topic.OdeRawEncodedTIMJson
collectionName: OdeRawEncodedTIMJson
generateTimestamp: true
geojsonconverter:
name: geojsonconverter
connectors:
- topicName: topic.ProcessedBsm
collectionName: ProcessedBsm
generateTimestamp: true
geojsonconverter_duplicated:
name: geojsonconverter-duplicated
connectors:
- topicName: topic.ProcessedMap
collectionName: ProcessedMap
generateTimestamp: true
- topicName: topic.ProcessedSpat
collectionName: ProcessedSpat
generateTimestamp: true
deduplicator:
name: deduplicator
connectors:
- topicName: topic.DeduplicatedProcessedMap
collectionName: ProcessedMap
generateTimestamp: true
connectorName: DeduplicatedProcessedMap
- topicName: topic.DeduplicatedOdeMapJson
collectionName: OdeMapJson
generateTimestamp: true
connectorName: DeduplicatedOdeMapJson
- topicName: topic.DeduplicatedOdeTimJson
collectionName: OdeTimJson
generateTimestamp: true
connectorName: DeduplicatedOdeTimJson
- topicName: topic.DeduplicatedOdeRawEncodedTIMJson
collectionName: OdeRawEncodedTIMJson
generateTimestamp: true
connectorName: DeduplicatedOdeRawEncodedTIMJson
- topicName: topic.DeduplicatedOdeBsmJson
collectionName: OdeBsmJson
generateTimestamp: true
connectorName: DeduplicatedOdeBsmJson
- topicName: topic.DeduplicatedProcessedSpat
collectionName: ProcessedSpat
generateTimestamp: true
connectorName: DeduplicatedProcessedSpat
conflictmonitor:
name: conflictmonitor
connectors:
# Record Events
- topicName: topic.CmStopLinePassageEvent
collectionName: CmStopLinePassageEvent
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmStopLineStopEvent
collectionName: CmStopLineStopEvent
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSignalStateConflictEvents
collectionName: CmSignalStateConflictEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmIntersectionReferenceAlignmentEvents
collectionName: CmIntersectionReferenceAlignmentEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSignalGroupAlignmentEvents
collectionName: CmSignalGroupAlignmentEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmConnectionOfTravelEvent
collectionName: CmConnectionOfTravelEvent
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmLaneDirectionOfTravelEvent
collectionName: CmLaneDirectionOfTravelEvent
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatTimeChangeDetailsEvent
collectionName: CmSpatTimeChangeDetailsEvent
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatMinimumDataEvents
collectionName: CmSpatMinimumDataEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmMapBroadcastRateEvents
collectionName: CmMapBroadcastRateEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmMapMinimumDataEvents
collectionName: CmMapMinimumDataEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatBroadcastRateEvents
collectionName: CmSpatBroadcastRateEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmTimestampDeltaEvent
collectionName: CmTimestampDeltaEvent
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatMessageCountProgressionEvents
collectionName: CmSpatMessageCountProgressionEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmMapMessageCountProgressionEvents
collectionName: CmMapMessageCountProgressionEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmBsmMessageCountProgressionEvents
collectionName: CmBsmMessageCountProgressionEvents
useTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatMinimumDataEventAggregation
collectionName: CmSpatMinimumDataEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmMapMinimumDataEventAggregation
collectionName: CmMapMinimumDataEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmIntersectionReferenceAlignmentEventAggregation
collectionName: CmIntersectionReferenceAlignmentEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSignalGroupAlignmentEventAggregation
collectionName: CmSignalGroupAlignmentEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSignalStateConflictEventAggregation
collectionName: CmSignalStateConflictEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatTimeChangeDetailsEventAggregation
collectionName: CmSpatTimeChangeDetailsEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmEventStateProgressionEventAggregation
collectionName: CmEventStateProgressionEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmBsmMessageCountProgressionEventAggregation
collectionName: CmBsmMessageCountProgressionEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmMapMessageCountProgressionEventAggregation
collectionName: CmMapMessageCountProgressionEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmSpatMessageCountProgressionEventAggregation
collectionName: CmSpatMessageCountProgressionEventAggregation
generateTimestamp: true
timestampField: eventGeneratedAt
# Record BSM events:
- topicName: topic.CmBsmEvents
collectionName: CmBsmEvents
generateTimestamp: true
# Record Assessments:
- topicName: topic.CmLaneDirectionOfTravelAssessment
collectionName: CmLaneDirectionOfTravelAssessment
useTimestamp: true
timestampField: assessmentGeneratedAt
- topicName: topic.CmConnectionOfTravelAssessment
collectionName: CmConnectionOfTravelAssessment
useTimestamp: true
timestampField: assessmentGeneratedAt
- topicName: topic.CmSignalStateEventAssessment
collectionName: CmSignalStateEventAssessment
useTimestamp: true
timestampField: assessmentGeneratedAt
- topicName: topic.CmStopLineStopAssessment
collectionName: CmStopLineStopAssessment
useTimestamp: true
timestampField: assessmentGeneratedAt
# Record Notifications
- topicName: topic.CmSpatTimeChangeDetailsNotification
collectionName: CmSpatTimeChangeDetailsNotification
useTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmLaneDirectionOfTravelNotification
collectionName: CmLaneDirectionOfTravelNotification
useTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmConnectionOfTravelNotification
collectionName: CmConnectionOfTravelNotification
useTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmAppHealthNotifications
collectionName: CmAppHealthNotifications
useTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmSignalStateConflictNotification
collectionName: CmSignalStateConflictNotification
useTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmSignalGroupAlignmentNotification
collectionName: CmSignalGroupAlignmentNotification
useTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmNotification
collectionName: CmNotification
useTimestamp: true
timestampField: notificationGeneratedAt
useKey: true
keyField: key
- topicName: topic.CmStopLineStopNotification
collectionName: CmStopLineStopNotification
useTimestamp: true
timestampField: notificationGeneratedAt
useKey: true
keyField: key
- topicName: topic.CmStopLinePassageNotification
collectionName: CmStopLinePassageNotification
useTimestamp: true
timestampField: notificationGeneratedAt
useKey: true
keyField: key
- topicName: topic.CmTimestampDeltaNotification
collectionName: CmTimestampDeltaNotification
useTimestamp: true
timestampField: notificationGeneratedAt
useKey: true
keyField: key
- topicName: topic.CmEventStateProgressionNotification
collectionName: CmEventStateProgressionNotification
generateTimestamp: true
timestampField: eventGeneratedAt
- topicName: topic.CmIntersectionReferenceAlignmentNotificationAggregation
collectionName: CmIntersectionReferenceAlignmentNotificationAggregation
generateTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmSignalGroupAlignmentNotificationAggregation
collectionName: CmSignalGroupAlignmentNotificationAggregation
generateTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmSignalStateConflictNotificationAggregation
collectionName: CmSignalStateConflictNotificationAggregation
generateTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmSpatTimeChangeDetailsNotificationAggregation
collectionName: CmSpatTimeChangeDetailsNotificationAggregation
generateTimestamp: true
timestampField: notificationGeneratedAt
- topicName: topic.CmEventStateProgressionNotificationAggregation
collectionName: CmEventStateProgressionNotificationAggregation
generateTimestamp: true
timestampField: notificationGeneratedAt