revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.

Home Page:https://readthedocs.org/projects/django-health-check/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 'time_taken' of each check to JSON response

maszaa opened this issue · comments

I like to use the JSON response with load balancer. Less data transferred.

But once health check takes long, there is no information, which check took long.

The HTML response has the durations but if you have to read the actual response in terminal etc. it's quite unreadable

plugin.time_taken could be added to the JSON response as well. The JSON response is much more readable as it is (even without any indent).

Hi @maszaa,

If you built it, I will review it 👍

Best,
Joe

This is now implemented in v2 of the API in PR #295