## Bug description

I set up a self-hosted instance via AWS cloudformation and updated it recently.

The page /instance/status fails to load for me.

## Expected behavior

Instance status page loads successfully.

## How to reproduce

- Set up a cloudformation instance
- ???
- Visit /instance/status
- See report on 500 error from backend

## Environment

- 1.15.1 (latest docker container)

## Additional context

Not able to provide a lot of useful context here due to https://github.com/PostHog/deployment/issues/32

#### *Thank you* for your bug report – we love squashing them!

posthog/views.py
event_table_count = get_table_approx_count(Event._meta.db_table)[0]["approx_count"]
        event_table_size = get_table_size(Event._meta.db_table)[0]["size"]
        element_table_count = get_table_approx_count(Element._meta.db_table)[0]["approx_count"]
        element_table_size = get_table_size(Element._meta.db_table)[0]["size"]
        metrics.append(
            {"metric": "Postgres Element table", "value": f"ca {element_table_count} rows ({element_table_size})"}
        )
        metrics.append({"metric": "Postgres Event table", "value": f"ca {event_table_count} rows ({event_table_size})"})
    if redis_alive:
        import redis
        try:
            redis_info = get_redis_info()
            redis_queue_depth = get_redis_queue_depth()
            metrics.append({"metric": "Redis version", "value": f"{redis_info['redis_version']}"})
            metrics.append({"metric": "Redis current queue depth", "value": f"{redis_queue_depth}"})
            metrics.append({"metric": "Redis connected client count", "value": f"{redis_info['connected_clients']}"})
            metrics.append({"metric": "Redis memory used", "value": f"{redis_info['used_memory_human']}"})
            metrics.append({"metric": "Redis memory peak", "value": f"{redis_info['used_memory_peak_human']}"})
            metrics.append(
                {"metric": "Redis total memory available", "value": f"{redis_info['total_system_memory_human']}"}
            )
        except redis.exceptions.ConnectionError as e:
            metrics.append(
                {"metric": "Redis metrics", "value": f"Redis connected but then failed to return metrics: {e}"}
            )
    return JsonResponse({"results": metrics})
@never_cache
def preflight_check(request):
    return JsonResponse({"django": True, "redis": is_redis_alive(), "db": is_postgres_alive()})