-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquix.yaml
More file actions
385 lines (382 loc) · 10.9 KB
/
quix.yaml
File metadata and controls
385 lines (382 loc) · 10.9 KB
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
# 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: Grafana
application: grafana
version: latest
deploymentType: Service
resources:
cpu: 500
memory: 500
replicas: 1
publicAccess:
enabled: true
urlPrefix: grafana
state:
enabled: true
size: 1
network:
serviceName: grafana
ports:
- port: 80
targetPort: 3000
variables:
- name: GF_SECURITY_ADMIN_PASSWORD
inputType: Secret
description: Password for the admin user
required: true
secretKey: influxdb_admin_token
- name: INFLUXDB_TOKEN
inputType: Secret
description: The optional InfluxDB Token to use
secretKey: influxdb_admin_token
- name: HTTP API Source
application: http-api-source
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
publicAccess:
enabled: true
urlPrefix: http-source
network:
serviceName: http-source
ports:
- port: 80
targetPort: 80
variables:
- name: output
inputType: OutputTopic
description: This is the output topic for hello world data
required: true
value: http_data
- name: HTTP_AUTH_TOKEN
inputType: Secret
description: A security token for authorizing data submissions.
required: true
secretKey: http_auth_token
- name: OPC UA Server
group: Mock Data Source
application: opc-ua-server
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
network:
serviceName: intopcserver
ports:
- port: 4840
targetPort: 4840
- name: OPC UA Source
group: Mock Data Source
application: opc-ua-source
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 200
replicas: 1
variables:
- name: output
inputType: OutputTopic
description: This is the Quix Topic that will receive the stream
required: true
value: generated-opc_ua_data
- name: OPC_SERVER_URL
inputType: FreeText
description: The URL to your OPC UA server
required: true
value: https://intopcserver:4840/freeopcua/server/
- name: OPC_NAMESPACE
inputType: FreeText
description: The namespace of the data coming from your OPC UA server
required: true
value: http://quix.freeopcua.io
- name: PARAMETER_NAMES_TO_PROCESS
inputType: FreeText
description: List of parameter names, comma-separated.
required: true
value: T001,T002
- name: LOGLEVEL
inputType: FreeText
description: Desired loglevel; Use DEBUG to see change events, else INFO for max performance.
value: INFO
- name: HTTP Data Normalization
application: http-data-normalization
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
state:
enabled: true
size: 1
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
value: http_data
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
value: normalized_data
- name: InfluxDB2
group: Aux services
application: influxdb2
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
state:
enabled: true
size: 1
network:
serviceName: influxdb2
ports:
- port: 80
targetPort: 8086
variables:
- name: DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
inputType: Secret
description: Default Admin Token to initialize Influx with
required: true
secretKey: influxdb_admin_token
- name: DOCKER_INFLUXDB_INIT_PASSWORD
inputType: Secret
description: Default Admin password to initialize Influx with
required: true
secretKey: influxdb_admin_password
- name: DOCKER_INFLUXDB_INIT_BUCKET
inputType: FreeText
description: Bucket Name to initialize Influx with
required: true
value: my_bucket
- name: HTTP Sink
group: Mock Data Source
application: http-sink
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.
value: generated-opc_ua_data
- name: RECEIVER_URL
inputType: FreeText
description: What HTTP receiver endpoint to send data to.
required: true
value: http://http-source:80/data
- name: RECEIVER_AUTH_TOKEN
inputType: Secret
description: The token for authenticating with an HTTP data receiver.
required: true
secretKey: http_auth_token
- name: InfluxDB2 Sink
application: influxdb2-sink
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: input
inputType: InputTopic
description: This is the input topic
required: true
value: config_enriched_data
- name: INFLUXDB_HOST
inputType: FreeText
description: Host address for the InfluxDB instance.
required: true
value: http://influxdb2:80
- name: INFLUXDB_TOKEN
inputType: Secret
description: Authentication token to access InfluxDB.
required: true
secretKey: influxdb_admin_token
- name: INFLUXDB_ORG
inputType: FreeText
description: Organization name in InfluxDB.
value: quix
- name: INFLUXDB_MEASUREMENT_NAME
inputType: FreeText
description: The InfluxDB measurement to write data to. If not specified, the name of the input topic will be used
value: printers
- name: INFLUXDB_DATABASE
inputType: FreeText
description: Database name in InfluxDB where data should be stored.
required: true
value: my_bucket
- name: INFLUXDB_TAG_KEYS
inputType: FreeText
description: 'The tags to include when writing the measurement data. Example: Tag1,Tag2'
value: machine,editor
- name: INFLUXDB_FIELD_KEYS
inputType: FreeText
description: 'The fields to include when writing the measurement data. Example: Field1,Field2'
- name: CONSUMER_GROUP_NAME
inputType: FreeText
description: The name of the consumer group to use when consuming from Kafka
required: true
value: influxdb2-sink3
- name: TIMESTAMP_COLUMN
inputType: FreeText
description: 'The column containing the timestamp column. NOTE: Must be nanoseconds'
value: timestamp
- name: BUFFER_SIZE
inputType: FreeText
description: The number of records that sink holds before flush data to the InfluxDb
value: 1000
- name: BUFFER_TIMEOUT
inputType: FreeText
description: The number of seconds that sink holds before flush data to the InfluxDb
value: 1
- name: HTTP Config Enricher
application: http-config-enricher
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 500
replicas: 1
variables:
- name: DATA_TOPIC
inputType: InputTopic
description: Name of the data topic to listen to.
value: normalized_data
- name: CONFIG_TOPIC
inputType: InputTopic
description: Name of the config topic to listen to.
value: config-updates
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
value: config_enriched_data
- name: MongoDB
group: Aux services
application: mongodb
version: latest
deploymentType: Service
resources:
cpu: 200
memory: 800
replicas: 1
state:
enabled: true
size: 1
network:
serviceName: mongodb
ports:
- port: 27017
targetPort: 27017
variables:
- name: MONGO_INITDB_ROOT_USERNAME
inputType: FreeText
description: The root username to initialize MongoDB with
required: true
value: admin
- name: MONGO_INITDB_ROOT_PASSWORD
inputType: Secret
description: The root password to initialize MongoDB with
required: true
secretKey: mongo_password
- name: Machine Config UI
application: config-frontend
version: latest
deploymentType: Service
plugin:
embeddedView:
enabled: true
hideHeader: true
default: true
sidebarItem:
show: true
label: "Input form"
icon: checklist
resources:
cpu: 200
memory: 500
replicas: 1
publicAccess:
enabled: true
urlPrefix: machine-config-ui
variables:
- name: CONFIG_API_BASE_URL
inputType: FreeText
required: true
value: http://config-api-svc/api/v1
- name: CONFIG_UI_AUTH_TOKEN
inputType: Secret
required: true
secretKey: config_ui_auth_token
- name: Dynamic Configuration Manager
application: DynamicConfiguration
version: latest
deploymentType: Managed
plugin:
embeddedView:
enabled: true
hideHeader: true
default: true
sidebarItem:
show: true
label: "Configurations"
icon: "tune"
resources:
cpu: 100
memory: 500
replicas: 1
network:
serviceName: config-api-svc
configuration:
topic: config-updates
mongoHost: mongodb
mongoPort: 27017
mongoUser: admin
mongoPasswordSecret: mongo_password
mongoDatabase: quix
mongoCollection: configuration-api
# This section describes the Topics of the data pipeline
topics:
- name: generated-opc_ua_data
dataTier: Bronze
- name: http_data
dataTier: Bronze
- name: normalized_data
dataTier: Silver
- name: config_enriched_data
dataTier: Silver
- name: config-updates
- name: tsbs_data
configuration:
partitions: 4
- name: aggregates
- name: watermarks__downsampling-v1.1--watermarks
configuration:
partitions: 1
cleanupPolicy: Compact
- name: watermarks__downsampling-v1.2--watermarks
configuration:
partitions: 1
cleanupPolicy: Compact
- name: watermarks__downsampling-v1.3--watermarks
configuration:
partitions: 1
cleanupPolicy: Compact
- name: sensor-data
- name: s3-data