الملفات
ghaymah-exam-sre-abdelrahman/q5-mithal-monitor

Question 5: mithal.space Engine Monitoring Dashboard

Overview

Automated monitoring solution for mithal.space that tracks:

  • HTTP Latency (Request response time in ms)
  • Uptime / Availability (Status code verification)
  • SSL Certificate Expiration (Remaining validity days)
  • DNS Resolution Time (Name server resolution delay)
  • Search Response Latency (End-to-end query performance)

Architecture & Integration

  1. Collector (monitor.py): Python script collecting operational metrics and appending structured logs to metrics.json.
  2. Web Dashboard (dashboard.html): Frontend interface rendering active health metrics and interactive Chart.js response time graphs.
  3. Endpoint Integration: Exposed via Flask on /mithal-dashboard and /api/mithal-metrics.