Add telemetry config to docker-compose and .env #374
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add Mosaic Telemetry configuration to the Docker Compose stack and environment variable templates so telemetry is properly configured in both dev and production deployments.
Requirements
Environment Variables (.env.example)
Add the following to
.env.example:docker-compose.yml (dev)
MOSAIC_TELEMETRY_*env vars toapiandcoordinatorservicestelemetry-apiservice for fully self-contained dev stack:MOSAIC_TELEMETRY_SERVER_URLshould point to Docker network name (e.g.,http://telemetry-api:8000)docker-compose.swarm.yml (prod)
MOSAIC_TELEMETRY_SERVER_URL=https://tel-api.mosaicstack.dev(external URL)Documentation
MOSAIC_TELEMETRY_ENABLED=falsecompletely disables telemetry (no HTTP calls)MOSAIC_TELEMETRY_DRY_RUN=truelogs events to console (useful for dev)Acceptance Criteria
Completed in commit
0467f77on feature/m10-telemetry. Added MOSAIC_TELEMETRY_* vars to .env.example, docker-compose.yml, docker/docker-compose.yml, and both swarm compose files.