diff --git a/app/version.go b/app/version.go index 807694b5..241abfbb 100644 --- a/app/version.go +++ b/app/version.go @@ -29,8 +29,8 @@ func (v versionInfo) MinorString() string { // Version of the app var Version = versionInfo{ Major: 16, - Minor: 18, - Patch: 2, + Minor: 19, + Patch: 0, } // Commit is the git commit the app is build from. It should be filled in during compilation diff --git a/cluster/cluster.go b/cluster/cluster.go index cd6042d9..316b2dbf 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -1369,6 +1369,7 @@ type ClusterNodeCore struct { Error error LastContact time.Duration Latency time.Duration + Version string } type ClusterAboutLeader struct { @@ -1458,6 +1459,7 @@ func (c *cluster) About() (ClusterAbout, error) { Error: nodeAbout.Core.Error, LastContact: nodeAbout.Core.LastContact, Latency: nodeAbout.Core.Latency, + Version: nodeAbout.Core.Version, }, Resources: ClusterNodeResources{ IsThrottling: nodeAbout.Resources.IsThrottling, diff --git a/http/api/cluster.go b/http/api/cluster.go index e34ce53a..b60fd6c5 100644 --- a/http/api/cluster.go +++ b/http/api/cluster.go @@ -27,6 +27,7 @@ type ClusterNodeCore struct { Error string `json:"error"` LastContact float64 `json:"last_contact_ms"` // milliseconds Latency float64 `json:"latency_ms"` // milliseconds + Version string `json:"version"` } type ClusterNodeResources struct { diff --git a/http/handler/api/cluster.go b/http/handler/api/cluster.go index a1fb5730..757642d0 100644 --- a/http/handler/api/cluster.go +++ b/http/handler/api/cluster.go @@ -108,6 +108,7 @@ func (h *ClusterHandler) marshalClusterNode(node cluster.ClusterNode) api.Cluste Status: node.Core.Status, LastContact: node.Core.LastContact.Seconds() * 1000, Latency: node.Core.Latency.Seconds() * 1000, + Version: node.Core.Version, }, Resources: api.ClusterNodeResources{ IsThrottling: node.Resources.IsThrottling,