Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Health endpoint http status #557

Closed
runningman84 opened this issue Sep 8, 2016 · 0 comments
Closed

Health endpoint http status #557

runningman84 opened this issue Sep 8, 2016 · 0 comments
Labels
Milestone

Comments

@runningman84
Copy link

It would be cool if uchiwa would return a non 200 return code if the sensu api is not reachable:

curl localhost:3000/health
{"sensu":{"Sensu":{"output":"Connection error. Is the Sensu API running?","status":2}},"uchiwa":"ok"}

curl -I http://127.0.0.1:3000/health
HTTP/1.1 200 OK
Date: Thu, 08 Sep 2016 12:34:14 GMT
Content-Length: 102
Content-Type: text/plain; charset=utf-8

curl http://127.0.0.1:3000/health/sensu
{"Sensu":{"output":"Connection error. Is the Sensu API running?","status":2}}

curl -I http://127.0.0.1:3000/health/sensu
HTTP/1.1 200 OK
Date: Thu, 08 Sep 2016 12:45:08 GMT
Content-Length: 37
Content-Type: text/plain; charset=utf-8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants