Skip to main content

Observability & Ops

Logging

  • Laravel default log channel: stack (LOG_CHANNEL).
  • Log location: storage/logs/laravel.log.

Queue Monitoring

  • Tables: jobs, failed_jobs, job_batches.
  • Minimum metrics:
  • number of failed jobs
  • long queue
  • retry spike

Operational Dashboards (Recommendations)

DashboardsMetrics
API Healthp95 latency, 4xx/5xx rates
Queuesjobs waiting, failed jobs/hour
DBslow query count, connection saturation
Businessnumber of SPB waiting, PO complaints, payment waiting

Alerting Rules (Recommendations)

  • 5xx errors > 3% for 5 minutes.
  • Failed jobs > 20 in 15 minutes.
  • Login API failure spike > baseline 2x.

Audit & Security Ops

  • Rotation of tokens/API secrets.
  • Make sure APP_DEBUG=false in prod.
  • Protect /api/v1/doc endpoint (strong basic auth).

Verification Notes

  • Status: Partial
  • Scope: Explicit APM integration (Sentry/NewRelic/Datadog) not found in source audit.
  • Action: Verify the actual monitoring stack in the deployment environment and update the document.