From b5f1c41aefb4f10a8c58c1618c04a59a887f94d4 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 8 Jun 2016 17:20:12 -0700 Subject: [PATCH] Updates serf to get health score in stats. --- Godeps/Godeps.json | 8 ++++---- vendor/github.com/hashicorp/serf/serf/serf.go | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 167286e239..ca2ea9a172 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -226,13 +226,13 @@ }, { "ImportPath": "github.com/hashicorp/serf/coordinate", - "Comment": "v0.7.0-64-gdce30f1", - "Rev": "dce30f1c7806bf2d96478abb983c53af0e4c8fb2" + "Comment": "v0.7.0-66-g6c4672d", + "Rev": "6c4672d66fc6312ddde18399262943e21175d831" }, { "ImportPath": "github.com/hashicorp/serf/serf", - "Comment": "v0.7.0-64-gdce30f1", - "Rev": "dce30f1c7806bf2d96478abb983c53af0e4c8fb2" + "Comment": "v0.7.0-66-g6c4672d", + "Rev": "6c4672d66fc6312ddde18399262943e21175d831" }, { "ImportPath": "github.com/hashicorp/yamux", diff --git a/vendor/github.com/hashicorp/serf/serf/serf.go b/vendor/github.com/hashicorp/serf/serf/serf.go index 78620d583e..04b300a9b5 100644 --- a/vendor/github.com/hashicorp/serf/serf/serf.go +++ b/vendor/github.com/hashicorp/serf/serf/serf.go @@ -1622,6 +1622,7 @@ func (s *Serf) Stats() map[string]string { "members": toString(uint64(len(s.members))), "failed": toString(uint64(len(s.failedMembers))), "left": toString(uint64(len(s.leftMembers))), + "health_score": toString(uint64(s.memberlist.GetHealthScore())), "member_time": toString(uint64(s.clock.Time())), "event_time": toString(uint64(s.eventClock.Time())), "query_time": toString(uint64(s.queryClock.Time())),