-
Notifications
You must be signed in to change notification settings - Fork 800
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
Django explicit support #1088
Comments
There could be opportunity for this similar to what is done for twisted. Specifically, only optional dependency on django code and in a separate directory. That said, is there a problem you are encountering with django-prometheus? Perhaps we just link out to other projects to make it easier to discover how to use Prometheus with various frameworks? Starlette also comes to mind. |
Yes I was thinking of following the same code architecture as the twisted support, to avoid any conflict. To give you my context:
django-prometheus is kinda huge and does a lot of things, so linking it as an example on how to integrate with prometheus-client is a bit involved I think. A simple view calling |
Hello, I was thinking it would be great to add explicit support for Django. Besides updating the documentation, it would be useful to provide a view so it can be added easily in the urlconf of a django app.
django-prometheus does it like this using
generate_latest
, but from looking at the already provided exposition endpoints, I was thinking of using the_bake_output
utility instead.I'm volunteering to make a PR for it.
What do you think?
The text was updated successfully, but these errors were encountered: