From 0febfa49ef669174763f06d6bb879f8412d4f599 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Mon, 29 May 2023 12:33:01 +0200 Subject: [PATCH] Move metrics endpoint for django-prometheus to the right location --- CHANGELOG.rst | 5 +++++ aleksis/core/urls.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fe7a89aa0..92c3c9fdf 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_. Unreleased ---------- +Fixed +~~~~~ + +* Metrics endpoint for Prometheus was at the wrong URL. + `3.0`_ - 2022-05-11 ------------------- diff --git a/aleksis/core/urls.py b/aleksis/core/urls.py index 9792fcb75..cc5d95452 100644 --- a/aleksis/core/urls.py +++ b/aleksis/core/urls.py @@ -42,11 +42,11 @@ urlpatterns = [ ), path("oauth/", include("oauth2_provider.urls", namespace="oauth2_provider")), path("system_status/", views.SystemStatusAPIView.as_view(), name="system_status_api"), + path("", include("django_prometheus.urls")), path( "django/", include( [ - path("", include("django_prometheus.urls")), path("account/login/", views.LoginView.as_view(), name="login"), path( "accounts/signup/", views.AccountRegisterView.as_view(), name="account_signup" -- GitLab