emfcamp / numbermanagement

EMF phone number management system
4 stars 4 forks source link

Prometheus integration runs too early #30

Open MattGrayYes opened 1 month ago

MattGrayYes commented 1 month ago

If you havent got a working database yet while testing, it manage.py crashes because the prometheus bit is trying to access the database tables before theyve been created

These lines at the bottom of /api/views.py

REGISTRY.register(MetricsCollector())

def metrics(request): return HttpResponse(generate_latest())

MattGrayYes commented 1 month ago

might be fixed in pr28