Skip to content

Commit

Permalink
etcdserver: strip patch version in metrics
Browse files Browse the repository at this point in the history
Strip patch version in cluster version metrics during node restart.
  • Loading branch information
jingyih committed Oct 16, 2019
1 parent b3329eb commit a00abf5
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 a00abf5

Please sign in to comment.