Monitor
Learn how to set up alerts and monitoring for your Piglet Run instance.
Overview
Piglet Run includes comprehensive monitoring:
- Grafana Dashboards: Visual monitoring
- Alerting: Configurable alerts
- Metrics: Prometheus-based metrics
- Logs: Centralized logging
Quick Setup
Access monitoring dashboard:
Grafana Dashboards
Available Dashboards
| Dashboard | Description |
|---|---|
| Overview | System overview and health |
| PostgreSQL | Database performance metrics |
| Node | Server resource usage |
| Nginx | Web server statistics |
Access Dashboards
Set Up Alerts
Enable Email Alerts
Enable Slack Alerts
Enable Webhook Alerts
Alert Rules
View Alert Rules
Add Custom Alert
Default Alerts
| Alert | Condition | Severity |
|---|---|---|
| High CPU | > 80% for 5m | Warning |
| High Memory | > 90% for 5m | Warning |
| Disk Full | > 85% | Critical |
| DB Down | Connection failed | Critical |
| Replication Lag | > 1s | Warning |
Configuration
Alert configuration in /etc/piglet/alerts.yml:
View Logs
Next Steps
- Learn about Grafana
- Understand Architecture