Troubleshooting
Logs not appearing in Grafana
-
Check if services are running:
./scripts/status-observability.sh -
Verify environment variables are set:
echo $OTEL_EXPORTER_OTLP_LOGS_ENDPOINT # Should output: http://localhost:3100 -
Check Loki logs:
tail -f ~/.local/share/device-farm-observability/loki.log
Grafana shows "No data"
- Ensure the Loki datasource is configured with UID
loki - Check if Hub/Node are emitting logs (look for
OTLP logs flushed successfullyin console) - Verify the time range in Grafana covers when logs were generated
Session ID filter not working
The Session ID filter uses structured metadata. Ensure you're using the exact session ID format (UUID).
Docker Compose issues
Services not starting
Check if ports are already in use:
lsof -i :3001 # Grafana
lsof -i :3100 # Loki
lsof -i :3200 # Tempo
lsof -i :4318 # OTLP HTTP
Logs not reaching Loki
Verify the container is healthy:
docker-compose ps
docker-compose logs loki
Native Scripts issues
Binary not found
Re-run the setup script:
./scripts/setup-observability.sh
Permission denied
Ensure scripts are executable:
chmod +x ./scripts/*.sh