mirror of
https://github.com/caronc/apprise-api.git
synced 2024-12-14 02:41:38 +01:00
add basic prometheus metrics
This commit is contained in:
parent
1c2e5ff1ea
commit
8b024c6ee5
@ -61,12 +61,17 @@ INSTALLED_APPS = [
|
|||||||
|
|
||||||
# Apprise API
|
# Apprise API
|
||||||
'api',
|
'api',
|
||||||
|
|
||||||
|
# Prometheus
|
||||||
|
'django_prometheus',
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
'django_prometheus.middleware.PrometheusBeforeMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'core.middleware.theme.AutoThemeMiddleware',
|
'core.middleware.theme.AutoThemeMiddleware',
|
||||||
'core.middleware.config.DetectConfigMiddleware',
|
'core.middleware.config.DetectConfigMiddleware',
|
||||||
|
'django_prometheus.middleware.PrometheusAfterMiddleware',
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = 'core.urls'
|
ROOT_URLCONF = 'core.urls'
|
||||||
|
@ -29,4 +29,5 @@ from api import urls as api_urls
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', include(api_urls)),
|
path('', include(api_urls)),
|
||||||
|
path('', include('django_prometheus.urls')),
|
||||||
]
|
]
|
||||||
|
@ -24,3 +24,6 @@ requests
|
|||||||
paho-mqtt < 2.0.0
|
paho-mqtt < 2.0.0
|
||||||
gntp
|
gntp
|
||||||
cryptography
|
cryptography
|
||||||
|
|
||||||
|
# prometheus metrics
|
||||||
|
django-prometheus
|
||||||
|
Loading…
Reference in New Issue
Block a user