Skip to content

Commit

Permalink
OC-22844 Removed monitoring of enketo instance
Browse files Browse the repository at this point in the history
  • Loading branch information
gushil committed May 21, 2024
1 parent 7323e44 commit 921d86f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions kobo/apps/service_health/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ def service_health(request):
postgres_message = 'OK'
postgres_time = time.time() - t0

t0 = time.time()
failure, enketo_message, enketo_content = get_response(settings.ENKETO_INTERNAL_URL)
any_failure = True if failure else any_failure
enketo_time = time.time() - t0

t0 = time.time()
failure, kobocat_message, kobocat_content = get_response(settings.KOBOCAT_INTERNAL_URL + '/service_health/')
any_failure = True if failure else any_failure
Expand All @@ -79,13 +74,11 @@ def service_health(request):
'{} KPI\r\n\r\n'
'Mongo: {} in {:.3} seconds\r\n'
'Postgres: {} in {:.3} seconds\r\n'
'Enketo [{}]: {} in {:.3} seconds\r\n'
'KoBoCAT [{}]: {} in {:.3} seconds\r\n'
).format(
'FAIL' if any_failure else 'OK',
mongo_message, mongo_time,
postgres_message, postgres_time,
settings.ENKETO_INTERNAL_URL, enketo_message, enketo_time,
settings.KOBOCAT_INTERNAL_URL, kobocat_message, kobocat_time
)

Expand Down

0 comments on commit 921d86f

Please sign in to comment.