-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquix.yaml
348 lines (345 loc) · 9.66 KB
/
quix.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
# Quix Project Descriptor
# This file describes the data pipeline and configuration of resources of a Quix Project.
metadata:
version: 1.0
# This section describes the Deployments of the data pipeline
deployments:
- name: MQTT Source
application: mqtt-source
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: output
inputType: OutputTopic
description: Name of the output topic to publish to.
required: true
value: mqtt
- name: mqtt_topic
inputType: FreeText
description: The root for messages in MQTT, this can be anything
required: true
value: MSU/#
- name: mqtt_server
inputType: FreeText
description: The address of your MQTT server
required: true
value: test.mosquitto.org
- name: mqtt_port
inputType: FreeText
description: The port of your MQTT server
required: true
value: 1883
- name: mqtt_username
inputType: FreeText
description: Username of your MQTT user
required: false
- name: mqtt_password
inputType: HiddenText
description: Password for the MQTT user
required: false
- name: mqtt_version
inputType: FreeText
description: 'MQTT protocol version: 3.1, 3.1.1, 5'
required: true
value: 3.1.1
- name: Postgres CDC Source
application: postgres-cdc-source
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: output
inputType: OutputTopic
description: This is the output topic
required: true
value: postgres-cdc
- name: PG_HOST
inputType: FreeText
description: Host name of Postgres
required: true
value: {{postgress_host}}
- name: PG_PORT
inputType: FreeText
description: Port of Postgres
required: true
value: 5432
- name: PG_USER
inputType: FreeText
description: Username of Postgres
required: true
value: postgres
- name: PG_PASSWORD
inputType: HiddenText
description: Password of Postgres
required: true
value: uFGpdjz3xyxzhUzoKp.o
- name: PG_DATABASE
inputType: FreeText
description: Database name of Postgres
required: true
value: postgres
- name: PG_SCHEMA
inputType: FreeText
description: Name of schema for CDC
required: true
value: public
- name: PG_TABLE
inputType: FreeText
description: Name of table for CDC
required: true
value: sensordata
- name: InfluxDB 2.0 Source
application: influxdb2-source
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: output
inputType: OutputTopic
description: This is the Kafka topic that will receive the query results
required: true
value: influxdbv2-data
- name: task_interval
inputType: FreeText
description: Interval to run query. Must be within the InfluxDB notation; 1s, 1m, 1h, 1d, 1w, 1y
required: true
value: 10s
- name: INFLUXDB_HOST
inputType: FreeText
description: Host address for the InfluxDB instance.
required: true
value: {{influxdb_host}}
- name: INFLUXDB_TOKEN
inputType: FreeText
description: Authentication token to access InfluxDB.
required: true
value: rwJpQuwqTmVfXoj-6bYv
- name: INFLUXDB_ORG
inputType: FreeText
description: Organization name in InfluxDB.
required: true
value: quix
- name: INFLUXDB_BUCKET
inputType: FreeText
description: Bucket name in InfluxDB where data is stored.
required: true
value: iotdemo
- name: INFLUXDB_MEASUREMENT_NAME
inputType: FreeText
description: The InfluxDB measurement to read data from. If not specified, the name of the output topic will be used
required: false
value: sensordata
- name: Telegraf Source
application: telegraf-source
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: output
inputType: OutputTopic
description: Name of the output topic to write into
required: true
value: telegraf
- name: MQTT normalisation
application: mqtt-normalisation
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: false
value: mqtt
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
required: false
value: sensor-data-table
- name: InfluxDB CDC normalisation
application: influxdb-cdc-normalisation
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: false
value: influxdbv2-data
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
required: false
value: sensor-data-table
- name: PostgreSQL CDC normalisation
application: postgres-cdc-normalisation
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: false
value: postgres-cdc
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
required: false
value: sensor-data-table
- name: Telegraf normalisation
application: telegraf-normalisation
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: false
value: telegraf
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
required: false
value: sensor-data-table
- name: AWS Iceberg sink
application: aws-iceberg-sink
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 4000
replicas: 1
variables:
- name: input
inputType: InputTopic
description: This is the input topic
required: true
value: sensor-data-table
- name: AWS_S3_URI
inputType: FreeText
description: The URI or URL to your S3 bucket
required: true
value: {{s3_iceberg_path}}
- name: AWS_SECRET_ACCESS_KEY
inputType: Secret
description: Your AWS secret
required: true
secretKey: AWS_SECRET_ACCESS_KEY
- name: AWS_ACCESS_KEY_ID
inputType: FreeText
description: Your AWS Access Key
required: true
value: AKIA5JJJFC76GRHTOTPS
- name: table_name
inputType: FreeText
description: The table to publish data to
required: true
value: {{table_name}}
- name: AWS_REGION
inputType: FreeText
required: false
value: eu-north-1
- name: IcebergQuery
application: query
version: latest
deploymentType: Service
resources:
cpu: 500
memory: 1000
replicas: 1
publicAccess:
enabled: true
urlPrefix: query
variables:
- name: basic_auth_password
inputType: Secret
description: ''
required: true
secretKey: basic_auth_password
- name: consumer_group
inputType: FreeText
required: false
value: iceberg-sink-v3.9
- name: leading_edge_ms
inputType: FreeText
required: false
value: 5000
- name: AWS_SECRET_ACCESS_KEY
inputType: Secret
description: ''
required: false
secretKey: AWS_SECRET_ACCESS_KEY
- name: AWS_S3_URI
inputType: FreeText
required: false
value: s3://data-integration-example/tomas-dataintegrationexample-dev
- name: AWS_ACCESS_KEY_ID
inputType: FreeText
required: false
value: AKIA5JJJFC76GRHTOTPS
- name: AWS_DEFAULT_REGION
inputType: FreeText
required: false
value: eu-north-1
- name: table_name
inputType: FreeText
required: false
value: {{table_name}}
# This section describes the Topics of the data pipeline
topics:
- name: mqtt
configuration:
replicationFactor: 2
retentionInMinutes: 1440
retentionInBytes: 52428800
dataTier: Bronze
- name: postgres-cdc
configuration:
replicationFactor: 2
retentionInMinutes: 1440
retentionInBytes: 52428800
dataTier: Bronze
- name: influxdbv2-data
configuration:
replicationFactor: 2
retentionInMinutes: 1440
retentionInBytes: 52428800
- name: telegraf
configuration:
replicationFactor: 2
retentionInMinutes: 1440
retentionInBytes: 52428800
- name: sensor-data-table
configuration:
replicationFactor: 2
retentionInMinutes: 1440
retentionInBytes: 52428800
dataTier: Gold