Skip to content

Commit cd061fc

Browse files
authored
feat: Add health check (#482)
1 parent 830eb8a commit cd061fc

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

bibxml/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@
122122
'xml2rfc_compat.app.Config',
123123
'compressor',
124124
'debug_toolbar',
125+
'health_check',
126+
'health_check.contrib.db_heartbeat',
125127
]
126128

127129
MIDDLEWARE = [

bibxml/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
path('__debug__/', include('debug_toolbar.urls')),
3434
path('metrics/', auth.basic(prometheus_metrics)),
35+
path('healthz/', include('health_check.urls')),
3536

3637
path('about', never_cache(require_safe(
3738
views.about

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ hypercorn>=0.13.2,<0.18
33
Django>=4.0,<5.0
44

55
django-cors-headers>=3.11.0,<4.5
6+
django-health-check>=3.20.0
67
django_debug_toolbar
78
django_compressor>4.1,<4.6
89
prometheus_client>=0.13.1,<0.21

0 commit comments

Comments
 (0)