added prometheus metrics exporter
This commit is contained in:
parent
b173068a76
commit
5cb6f87445
6 changed files with 51 additions and 1 deletions
|
@ -47,3 +47,8 @@ if settings.SERVE_ANYTHING:
|
|||
with suppress(ImportError):
|
||||
import debug_toolbar
|
||||
urlpatterns.insert(0, path('__debug__/', include(debug_toolbar.urls)))
|
||||
|
||||
if settings.METRCIS:
|
||||
with suppress(ImportError):
|
||||
import django_prometheus # noqu
|
||||
urlpatterns.insert(0, path('prometheus/', include('django_prometheus.urls')))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue