File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8080 django-pghistory
8181 django-pglock
8282 django-pgtrigger
83+ django-prometheus
8384 pytest
8485 pytest-django
8586 pytest-playwright
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ class AppSettings(BaseModel):
356356 "django.contrib.sessions" ,
357357 "django.contrib.messages" ,
358358 "django.contrib.staticfiles" ,
359+ "django_prometheus" ,
359360 "django_filters" ,
360361 "debug_toolbar" ,
361362 # AllAuth config
@@ -379,6 +380,7 @@ class AppSettings(BaseModel):
379380]
380381
381382MIDDLEWARE = [
383+ "django_prometheus.middleware.PrometheusBeforeMiddleware" ,
382384 "django.middleware.security.SecurityMiddleware" ,
383385 "django.contrib.sessions.middleware.SessionMiddleware" ,
384386 "django.middleware.common.CommonMiddleware" ,
@@ -390,6 +392,7 @@ class AppSettings(BaseModel):
390392 # Allauth account middleware
391393 "allauth.account.middleware.AccountMiddleware" ,
392394 "pghistory.middleware.HistoryMiddleware" ,
395+ "django_prometheus.middleware.PrometheusAfterMiddleware" ,
393396]
394397
395398ROOT_URLCONF = "project.urls"
Original file line number Diff line number Diff line change 1919from django .urls import include , path
2020
2121urlpatterns = [
22+ path ("" , include ("django_prometheus.urls" )),
2223 path ("" , include ("webview.urls" )),
2324 path ("api/" , include ("api.urls" )),
2425 path ("feeds/" , include ("feeds.urls" )),
You can’t perform that action at this time.
0 commit comments