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