@@ -23,7 +23,7 @@ The project is deployed as a Docker container.
23
23
24
24
Use the following [ Docker container] ( https://hub.docker.com/r/lux4rd0/sense-collector ) :
25
25
26
- lux4rd0/sense-collector:2.0.03
26
+ lux4rd0/sense-collector:2.0.06
27
27
lux4rd0/sense-collector:latest
28
28
29
29
Correct environmental variables are required for the container to function.
@@ -47,55 +47,40 @@ To start the docker container, simply update this example compose.yaml file:
47
47
container_name: sense-collector-53997
48
48
environment:
49
49
SENSE_COLLECTOR_API_PASSWORD: CHANGEME
50
- SENSE_COLLECTOR_API_USERNAME: dave@pulpfree.org
50
+ SENSE_COLLECTOR_API_USERNAME: dave@lux4rd0.com
51
51
SENSE_COLLECTOR_HOST_HOSTNAME: sense-collector.lux4rd0.com
52
52
SENSE_COLLECTOR_INFLUXDB_BUCKET: sense
53
- SENSE_COLLECTOR_INFLUXDB_ORG: Tylephony
53
+ SENSE_COLLECTOR_INFLUXDB_ORG: Lux4rd0
54
54
SENSE_COLLECTOR_INFLUXDB_TOKEN: TOKEN
55
55
SENSE_COLLECTOR_INFLUXDB_URL: http://sense-collector.lux4rd0.com:8086
56
- SENSE_COLLECTOR_LOG_LEVEL_API: CRITICAL
57
- SENSE_COLLECTOR_LOG_LEVEL_GENERAL: INFO
58
- SENSE_COLLECTOR_LOG_LEVEL_STORAGE: CRITICAL
59
- SENSE_COLLECTOR_SENSE_API_RECEIVE_DATA_OUTPUT: "False"
60
56
TZ: America/Chicago
61
57
image: lux4rd0/sense-collector:latest
62
58
restart: always
63
- volumes:
64
- - type: bind
65
- source: /mnt/docker/sense-collector/export
66
- target: /app/export
67
- bind:
68
- create_host_path: true
69
59
70
60
If you don't want to use docker-compose, an example docker run command will be displayed on the screen.
71
61
72
62
docker run --rm \
73
63
--name=sense-collector-53997 \
74
64
-e SENSE_COLLECTOR_API_PASSWORD=CHANGEME \
75
- -e SENSE_COLLECTOR_API_USERNAME=dave@pulpfree.org \
65
+ -e SENSE_COLLECTOR_API_USERNAME=dave@lux4rd0.com \
76
66
-e SENSE_COLLECTOR_HOST_HOSTNAME=sense-collector.lux4rd0.com \
77
67
-e SENSE_COLLECTOR_INFLUXDB_BUCKET=sense \
78
68
-e SENSE_COLLECTOR_INFLUXDB_ORG=Tylephony \
79
69
-e SENSE_COLLECTOR_INFLUXDB_TOKEN=TOKEN \
80
70
-e SENSE_COLLECTOR_INFLUXDB_URL=http://sense-collector.lux4rd0.com:8086 \
81
- -e SENSE_COLLECTOR_LOG_LEVEL_API=CRITICAL \
82
- -e SENSE_COLLECTOR_LOG_LEVEL_GENERAL=INFO \
83
- -e SENSE_COLLECTOR_LOG_LEVEL_STORAGE=CRITICAL \
84
- -e SENSE_COLLECTOR_SENSE_API_RECEIVE_DATA_OUTPUT="False" \
85
71
-e TZ=America/Chicago \
86
- -v /mnt/docker/sense-collector/export:/app/export \
87
72
--restart always \
88
73
lux4rd0/sense-collector:latest
89
74
90
75
Running ` docker-compose up -d' or the ` docker-run` command will download and start up the sense-collector container.
91
76
92
77
## Environmental Flags:
93
78
94
- The Docker contain can be configured with additional environment flags to control collector behaviors. They are descript below:
79
+ The Docker contain can be configured with additional environment flags to control collector behaviors. They are described below:
95
80
96
81
# Sense Collector Environmental Variables
97
82
98
- This document provides a detailed explanation of the environmental variables used to configure the Sense Collector Docker container. Each variable is classified as required or optional, along with its default value and possible options.
83
+ This document provides a detailed explanation of the environmental variables used to configure the Sense Collector Docker container. Each variable is classified as required or optional, with its default value and possible options.
99
84
100
85
## Environmental Variables
101
86
@@ -159,12 +144,71 @@ This document provides a detailed explanation of the environmental variables use
159
144
- ** Default** : INFO
160
145
- ** Options** : DEBUG, INFO, WARNING, ERROR, CRITICAL
161
146
162
- ### SENSE_COLLECTOR_SENSE_API_RECEIVE_DATA_OUTPUT
147
+ ### SENSE_COLLECTOR_OUTPUT_RECEIVED_DATA
163
148
- ** Description** : Enables or disables the output of received Sense API data to a file.
164
149
- ** Required** : No
165
150
- ** Default** : false
166
151
- ** Options** : true, false
167
152
153
+ ### SENSE_COLLECTOR_WS_HEARTBEAT_INTERVAL
154
+ - ** Description** : Interval (in seconds) between heartbeat messages to keep the WebSocket connection alive.
155
+ - ** Required** : No
156
+ - ** Default** : 10
157
+ - ** Options** : Integer value representing seconds
158
+
159
+ ### SENSE_COLLECTOR_WS_HEARTBEAT_TIMEOUT
160
+ - ** Description** : Timeout (in seconds) to wait for a heartbeat response before considering the WebSocket connection as dead.
161
+ - ** Required** : No
162
+ - ** Default** : 30
163
+ - ** Options** : Integer value representing seconds
164
+
165
+ ### SENSE_COLLECTOR_WS_RECONNECT_DELAY_INITIAL
166
+ - ** Description** : Initial delay (in seconds) before attempting to reconnect the WebSocket after a connection loss.
167
+ - ** Required** : No
168
+ - ** Default** : 5
169
+ - ** Options** : Integer value representing seconds
170
+
171
+ ### SENSE_COLLECTOR_WS_RECONNECT_DELAY_CAP
172
+ - ** Description** : Maximum delay (in seconds) between reconnection attempts.
173
+ - ** Required** : No
174
+ - ** Default** : 60
175
+ - ** Options** : Integer value representing seconds
176
+
177
+ ### SENSE_COLLECTOR_WS_MAX_RETRIES
178
+ - ** Description** : Maximum number of retries for reconnecting the WebSocket before giving up.
179
+ - ** Required** : No
180
+ - ** Default** : 3
181
+ - ** Options** : Integer value
182
+
183
+ ### SENSE_COLLECTOR_WS_BACKOFF_FACTOR
184
+ - ** Description** : Factor for exponential backoff between reconnection attempts.
185
+ - ** Required** : No
186
+ - ** Default** : 1
187
+ - ** Options** : Integer value
188
+
189
+ ### SENSE_COLLECTOR_WS_RECONNECT_INTERVAL
190
+ - ** Description** : Interval (in seconds) between forced WebSocket reconnections to maintain a fresh connection.
191
+ - ** Required** : No
192
+ - ** Default** : 840
193
+ - ** Options** : Integer value representing seconds
194
+
195
+ ### SENSE_COLLECTOR_DEVICE_CACHE_EXPIRY_SECONDS
196
+ - ** Description** : Duration (in seconds) for which the device data should be cached before it expires.
197
+ - ** Required** : No
198
+ - ** Default** : 120
199
+ - ** Options** : Integer value representing seconds
200
+
201
+ ### SENSE_COLLECTOR_DEVICE_MAX_CONCURRENT_LOOKUPS
202
+ - ** Description** : Maximum number of concurrent lookups that can be performed for device data.
203
+ - ** Required** : No
204
+ - ** Default** : 4
205
+ - ** Options** : Integer value
206
+
207
+ ### SENSE_COLLECTOR_DEVICE_LOOKUP_DELAY_SECONDS
208
+ - ** Description** : Delay (in seconds) between consecutive device data lookup requests.
209
+ - ** Required** : No
210
+ - ** Default** : 0.5
211
+ - ** Options** : Float value representing seconds
168
212
169
213
## Collector Details
170
214
0 commit comments