Dozzle log viewer
Joystick IoT platform includes Dozzle, a real-time log viewer for Docker containers.Accessing Dozzle
Dozzle is available athttp://localhost:8084 (or your configured host on port 8084).
Configuration
Features
- Real-time log streaming from all containers
- Search and filter logs
- Multi-container view
- Dark mode support
- No authentication required (ensure port 8084 is not exposed publicly)
Usage
- Open
http://localhost:8084in your browser - Select a container from the left sidebar
- View real-time logs in the main panel
- Use the search box to filter log entries
- Click on multiple containers to view logs from multiple services simultaneously
Log configuration
All services use JSON file logging with automatic rotation:Log rotation
- Maximum size: 10MB per log file
- Maximum files: 3 rotated files per container
- Format: JSON for structured logging
Viewing logs via Docker CLI
View all container logs
Follow logs in real-time
View logs for specific service
View last N lines
View logs with timestamps
View logs since specific time
Service monitoring
Traefik dashboard
Traefik provides a built-in dashboard athttp://localhost:8080.
Features:
- View all configured routers and services
- Monitor HTTP request rates
- Check service health status
- View middleware configuration
MediaMTX monitoring
MediaMTX provides an API for monitoring streams athttp://localhost:9997.
List all active paths
Get path statistics
Configuration
MediaMTX API is configured inmediamtx.yml:
Health check endpoints
PocketBase health check
Joystick API health check
Container monitoring
View running containers
View container resource usage
Inspect container details
View container processes
Production monitoring recommendations
For production deployments, consider implementing:External monitoring solutions
- Prometheus + Grafana: Time-series metrics and dashboards
- ELK Stack (Elasticsearch, Logstash, Kibana): Centralized log management
- Datadog: Cloud-based monitoring and analytics
- New Relic: Application performance monitoring
MediaMTX metrics
Enable Prometheus metrics inmediamtx.yml:
http://localhost:9998/metrics.
Alert configuration
Set up alerts for:- Container health check failures
- High CPU or memory usage
- Disk space exhaustion
- Failed authentication attempts
- Stream connection failures
Log levels
Traefik log levels
Adjust Traefik logging verbosity:MediaMTX log levels
Configure inmediamtx.yml: