|
|
@@ -54,8 +54,10 @@ import (
|
|
|
"github.com/coreos/etcd/store"
|
|
|
"github.com/coreos/etcd/version"
|
|
|
"github.com/coreos/etcd/wal"
|
|
|
+
|
|
|
"github.com/coreos/go-semver/semver"
|
|
|
"github.com/coreos/pkg/capnslog"
|
|
|
+ "github.com/prometheus/client_golang/prometheus"
|
|
|
"golang.org/x/net/context"
|
|
|
)
|
|
|
|
|
|
@@ -430,6 +432,7 @@ func NewServer(cfg *ServerConfig) (srv *EtcdServer, err error) {
|
|
|
reqIDGen: idutil.NewGenerator(uint16(id), time.Now()),
|
|
|
forceVersionC: make(chan struct{}),
|
|
|
}
|
|
|
+ serverID.With(prometheus.Labels{"server_id": id.String()}).Set(1)
|
|
|
|
|
|
srv.applyV2 = &applierV2store{store: srv.store, cluster: srv.cluster}
|
|
|
|