Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus integration runs too early #30

Open
MattGrayYes opened this issue May 29, 2024 · 1 comment
Open

Prometheus integration runs too early #30

MattGrayYes opened this issue May 29, 2024 · 1 comment

Comments

@MattGrayYes
Copy link
Contributor

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
Copy link
Contributor Author

might be fixed in pr28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant