22 lines
998 B
Markdown
22 lines
998 B
Markdown
# bandwidth_probing
|
|
|
|
Service that runs in a container and measures network bandwidth at a specified interval. The results are sent to a MongoDB database. Logs are sent to discord channel.
|
|
|
|
## Environment Variables
|
|
|
|
```python
|
|
LOGGER_LEVEL: Literal['debug', 'info', 'warning', 'error', 'critical'] = 'debug'
|
|
USER_ID: int = 0 # id number 0 is reserved for testing
|
|
REPLICATES: int = 3 # number of replicates to be measured per event
|
|
TRIGGER_INTERVAL_SECONDS: float = 3600 # seconds between events
|
|
DATA_QUEUE_FLUSH_INTERVAL_SECONDS: float = 600 # seconds between attempts to push data stuck in data queue
|
|
|
|
DB_IP_ADDRESS: str = '192.168.1.2'
|
|
DB_NAME: str = 'bandwidth_probing'
|
|
DB_COLLECTION_NAME: str = 'data'
|
|
|
|
DISCORD_SERVICE_NAME: str = 'bandwidth_probing
|
|
DISCORD_WEBHOOK_URL: str = 'https://discord.com/api/webhooks/1127970367047225354/wNkoRex4OncMw11OCJg6atR_xgHS2VhLrku4jYIUw81Kr4sutdD3Tt-XAltG0UQy14rZ'
|
|
DISCORD_LOGGER_LEVEL: Literal['debug', 'info', 'warning', 'error', 'critical'] = 'warning'
|
|
```
|