Skip to content

Commit

Permalink
Merge pull request #131 from gushil/master-OC-22844
Browse files Browse the repository at this point in the history
OC-22844 Removed monitoring of enketo instance
  • Loading branch information
svadla-oc authored May 22, 2024
2 parents 996c6bc + 921d86f commit 1f187b1
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 1f187b1

Please sign in to comment.