Skip to content

Prometheus integration runs too early #30

@MattGrayYes

Description

@MattGrayYes

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())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions