Przejdź do treści

Monitoring systemu

Azure Application Insights

Dashboard monitoringu: Azure PortalApplication Insightsmasaku-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 PortalApp ServiceLog stream

Pobierz logi:

az webapp log tail --name masaku-api-prod-de --resource-group masaku

Performance

Monitoruj: - Database queries (slow queries) - API response times - Frontend bundle size - User sessions

Uptime monitoring

Pingdom / StatusCake - external monitoring

Dalsze zasoby