Skip to content

Commit

Permalink
Send more than the last service check back
Browse files Browse the repository at this point in the history
At the moment, the consul check will only send the status of the last
service check in `/api/health/state/any`.

This pull request will send the status of all the service checks it can
find.
  • Loading branch information
jgmchan committed Sep 7, 2015
1 parent 89393e1 commit c4925b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/consul.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def check(self, instance):
if check["ServiceID"]:
tags.append("service-id:{0}".format(check["ServiceID"]))

self.service_check(self.HEALTH_CHECK, status, tags=tags)
self.service_check(self.HEALTH_CHECK, status, tags=tags)

except Exception as e:
self.service_check(self.CONSUL_CHECK, AgentCheck.CRITICAL,
Expand Down

0 comments on commit c4925b6

Please sign in to comment.