Skip to content

Commit

Permalink
Merge pull request #11265 from jingyih/fix_cluster_version_metrics
Browse files Browse the repository at this point in the history
etcdserver: strip patch version in metrics
  • Loading branch information
gyuho committed Oct 16, 2019
2 parents 57632d2 + 444bfdf commit debf86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ func (s *EtcdServer) start() {
} else {
plog.Infof("starting server... [version: %v, cluster version: %v]", version.Version, version.Cluster(s.ClusterVersion().String()))
}
membership.ClusterVersionMetrics.With(prometheus.Labels{"cluster_version": s.ClusterVersion().String()}).Set(1)
membership.ClusterVersionMetrics.With(prometheus.Labels{"cluster_version": version.Cluster(s.ClusterVersion().String())}).Set(1)
} else {
if lg != nil {
lg.Info(
Expand Down

0 comments on commit debf86c

Please sign in to comment.