Monitoring systemu¶
Azure Application Insights¶
Dashboard monitoringu: Azure Portal → Application Insights → masaku-insights
Metryki¶
- Request rate
- Response time
- Failed requests
- Exceptions
- Server resources (CPU, RAM)
Alerty¶
Konfiguruj alerty: - Response time > 2s - Error rate > 5% - CPU > 80%
Email/SMS notification.
Health checks¶
API Health endpoint:
GET /api/health
Response:
{
"status": "Healthy",
"checks": [
{"name": "Database", "status": "Healthy"},
{"name": "AzureStorage", "status": "Healthy"}
]
}
Logi¶
Azure Portal → App Service → Log stream
Pobierz logi:
Performance¶
Monitoruj: - Database queries (slow queries) - API response times - Frontend bundle size - User sessions
Uptime monitoring¶
Pingdom / StatusCake - external monitoring