System Health
Last checked: {{ health.last_checked|date:"M j, Y H:i:s"|default:"—" }}
Redis Connection
{% if health.redis_status == "OK" %}
OK
{% elif health.redis_status == "ERROR" %}
ERROR
{% else %}
Checking…
{% endif %}
{% if health.redis_status == "OK" %}
Connected — {{ health.redis_latency|default:"<1" }}ms
{% elif health.redis_status == "ERROR" %}
Connection failed
{% else %}
Checking…
{% endif %}
Celery Queue
{% if health.celery_queue_depth > 1000 %}
HIGH
{% elif health.celery_queue_depth == "?" %}
Checking…
{% else %}
OK
{% endif %}
{% if health.celery_queue_depth %}
{{ health.celery_queue_depth }} tasks queued
{% if health.celery_queue_depth > 1000 %}
Queue depth exceeds 1000 — scaling recommended
{% endif %}
{% else %}
Checking…
{% endif %}
Email Relay
{% if health.email_relay_status == "OK" %}
OK
{% elif health.email_relay_status == "ERROR" %}
ERROR
{% else %}
Checking…
{% endif %}
{% if health.email_relay_last_check %}
Last checked: {{ health.email_relay_last_check|date:"H:i:s" }}
{% else %}
Checking…
{% endif %}
Detailed Status
Django Application
{% if health.app_status == "OK" %}✓ Running
{% else %}✗ Down{% endif %}
PostgreSQL / Database
{% if health.db_status == "OK" %}✓ Connected
{% elif health.db_status == "ERROR" %}✗ Error
{% else %}—{% endif %}
Google Drive API
{% if health.drive_api_status == "OK" %}✓ OK
{% elif health.drive_api_status == "ERROR" %}✗ Error
{% else %}—{% endif %}
Celery Worker
{% if health.celery_status == "OK" %}✓ Active
{% elif health.celery_status == "DOWN" %}✗ Down
{% else %}—{% endif %}
System Uptime
{{ health.uptime|default:"—" }}
Memory Usage
{{ health.memory_usage|default:"—" }}
Disk Usage
{{ health.disk_usage|default:"—" }}
Recent Incidents
{% if incidents %}
{% for incident in incidents %}
{{ incident.timestamp|date:"M j, H:i" }}
{{ incident.message }}
{% endfor %}
{% else %}
✓ No incidents recorded
{% endif %}