Monitoring & Logging
Monitor your applications in real-time and manage logs effectively with Gophel CLI.
Real-time Monitoring
Monitor a specific application:
Monitor a specific application in real-time
gophel monitor <ID>
Monitor all applications:
Monitor all applications across servers
gophel monitor
Log Management
View application logs:
View application logs
gophel log <ID>
Stream logs in real-time:
Stream logs in real-time
gophel log <ID> --follow
Filter logs by level:
View only error-level logs
gophel log <ID> --level error
Performance Metrics
View detailed metrics:
View detailed performance metrics
gophel status <ID> --detailed
This includes CPU usage, memory consumption, response times, and other key metrics.
Alerting System
Set up alerts for important events:
Set CPU and memory usage alerts
gophel alert <ID> --cpu 80 --memory 90
You'll be notified when resource usage exceeds the specified thresholds.
Best Practices
- Set up appropriate alert thresholds
- Regularly review log patterns
- Monitor resource usage trends
- Configure log rotation
- Use structured logging