-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathradar_iot_config.yaml.template
71 lines (67 loc) · 2.75 KB
/
radar_iot_config.yaml.template
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
# make sure these values are exactly as in Management portal for using authorisation
radarConfig:
projectId: "radar"
userId: "sub-1"
sourceId: "03d28e5c-e005-46d4-a9b3-279c27fbbc83"
baseUrl: "http://localhost:8081"
oAuthClientId: "radar-iot"
oAuthClientSecret: "secret"
metaToken: "dlsLwIw0E1cP"
schemaRegistryUrl: "http://localhost:8084/"
kafkaUrl: "http://localhost:8090/radar-gateway/"
redisProperties:
host: redis
port: 6379
timeOut: 2000
password:
# If a converter is not specified for a particular consumer for a sensor,
# then the data from the sensor will not be forwarded to that consumer for processing
sensorConfigs:
- sensorName: "coral-enviro-humidity"
inputTopic: "data-stream/sensors/coral-enviro-humidity"
outputTopic: "coral_enviro_humidity"
converterClasses:
- consumerName: "rest_proxy"
converterClass: "org.radarbase.iot.converter.avro.coralenviro.CoralEnviroHumidityConverter"
- consumerName: "influx_db"
converterClass: "org.radarbase.iot.converter.influxdb.coralenviro.CoralEnviroHumidityInfluxDbConverter"
- sensorName: "coral-enviro-temperature"
inputTopic: "data-stream/sensors/coral-enviro-temperature"
outputTopic: "coral_enviro_temperature"
converterClasses:
- consumerName: "rest_proxy"
converterClass: "org.radarbase.iot.converter.avro.coralenviro.CoralEnviroTemperatureConverter"
- sensorName: "grovepi-air-quality"
inputTopic: "data-stream/sensors/grovepi-air-quality"
outputTopic: "grove_pi_air_quality"
converterClasses:
- consumerName: "rest_proxy"
converterClass: "org.radarbase.iot.converter.avro.grovepi.AirQualityAvroConverter"
- consumerName: "influx_db"
converterClass: "org.radarbase.iot.converter.influxdb.grovepi.AirQualitySensorInfluxDbConverter"
- sensorName: "mock"
inputTopic: "data-stream/sensors/mock"
outputTopic: "mock"
converterClasses:
- consumerName: "rest_proxy"
converterClass: "org.radarbase.iot.converter.avro.coralenviro.CoralEnviroTemperatureConverter"
- consumerName: "influx_db"
converterClass: "org.radarbase.iot.converter.influxdb.coralenviro.CoralEnviroHumidityInfluxDbConverter"
dataConsumerConfigs:
- consumerClass: "org.radarbase.iot.consumer.RestProxyDataConsumer"
maxCacheSize: "1000"
uploadIntervalSeconds: "10"
consumerName: "rest_proxy"
- consumerClass: "org.radarbase.iot.consumer.InfluxDbDataConsumer"
maxCacheSize: "1000"
uploadIntervalSeconds: "10"
consumerName: "influx_db"
influxDbConfig:
url: "http://10.200.107.10:8086"
username: "root"
password: "root"
dbName: "radarIot"
retentionPolicyName: "radarIotRetentionPolicy"
# Should be at least 1h
retentionPolicyDuration: "1h"
retentionPolicyReplicationFactor: 1