Service status
List all services
View all running services in your cluster:- NAME: Service name
- MODE: Deployment mode (replicated or global)
- REPLICAS: Number of running containers
- IMAGE: Container image(s) used
- ENDPOINTS: Published ports and domains
Inspect a specific service
Get detailed information about a service:- Service metadata (ID, name, mode)
- All containers running as part of this service
- Container state (Up, Exited, Restarting, etc.)
- IP addresses and machine assignments
Quick status with uc ps
List all running containers across your cluster:
Container logs
View service logs
Stream logs from all replicas of a service:- Timestamp
- Machine name
- Service name and container ID
- Log message
Follow logs in real-time
Stream logs as they happen:Ctrl+C to stop streaming.
Limit log lines
Show the last 20 lines per replica:Time-based filtering
View logs from the last 2 hours:- Relative duration:
2m30s,1h,3h30m - RFC 3339 date:
2024-01-15,2024-01-15T10:30:00 - RFC 3339 with timezone:
2024-01-15T10:30:00Z - Unix timestamp:
1763953966
Filter by machine
View logs from specific machines:View logs for multiple services
Stream logs from multiple services:View logs from all services
If you have acompose.yaml file, view logs from all defined services:
UTC timestamps
Show timestamps in UTC instead of local timezone:System logs
For deeper system-level debugging, SSH into machines and check systemd logs.Uncloud daemon logs
View the Uncloud daemon logs:- Container lifecycle events
- gRPC API calls
- WireGuard network changes
- Cluster state updates
Corrosion logs
View the Corrosion (distributed database) logs:- State replication events
- Database operations
- Gossip protocol messages
Docker logs
Check Docker daemon logs:System logs
View general system logs:Health check monitoring
Uncloud doesn’t have built-in health checks yet, but you can monitor service health using:Container state
Check if containers are running:STATUS column. Containers should show “Up X hours/minutes”.
Health check scripts
Create a simple health check script:External monitoring
Use external monitoring services to check your endpoints:- Uptime Robot: Free uptime monitoring
- Pingdom: Comprehensive monitoring with alerts
- Better Uptime: Modern uptime monitoring
- StatusCake: Free and paid monitoring
Resource usage
Uncloud doesn’t provide built-in metrics yet, but you can check resource usage on machines:System resources
SSH into a machine and check:Container resources
Check resource usage for a specific container:WireGuard network stats
Check WireGuard interface stats:- Peer connections
- Endpoint addresses
- Latest handshakes
- Data transfer statistics
Why doesn't Uncloud have built-in metrics?
Why doesn't Uncloud have built-in metrics?
Uncloud focuses on simplicity and minimizing overhead. Built-in metrics and monitoring add significant complexity and resource usage.For production workloads, we recommend:
- Exporting logs to external services (e.g., Datadog, Grafana Loki)
- Using Prometheus exporters in your services
- Setting up external uptime monitoring
Monitoring best practices
Set up log aggregation
For production, export logs to a centralized system:- Grafana Loki: Open-source log aggregation
- Datadog: Full-stack monitoring platform
- Papertrail: Simple log management
- Logtail: Modern log management
Monitor critical paths
Focus on monitoring:- Service availability (are containers running?)
- HTTPS certificate expiration
- Disk space on machines
- WireGuard connectivity between machines
Alert on failures
Set up alerts for:- Containers that restart frequently
- Machines going offline
- TLS certificate renewal failures
- Disk space above 85% usage
Regular health checks
Run daily checks:Log retention
Manage log retention to prevent disk space issues:Debugging commands
Useful commands for troubleshooting:Monitoring command reference
| Command | Description |
|---|---|
uc service ls | List all services |
uc service inspect SERVICE | Show detailed service info |
uc service logs SERVICE | View service logs |
uc service logs -f SERVICE | Follow logs in real-time |
uc service logs -n NUM SERVICE | Limit log lines per replica |
uc service logs --since TIME SERVICE | Filter logs by time |
uc service logs -m MACHINE SERVICE | Filter logs by machine |
uc service exec SERVICE COMMAND | Execute command in container |
uc machine ls | List all machines |
uc ps | List all containers |
Next steps
Troubleshooting
Common issues and solutions
Service Management
Learn about service operations
