Skip to content

Commit

Permalink
e2e: configure metrics url
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Jul 11, 2017
1 parent 6f3eea3 commit 4ad5aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ func (cfg *etcdProcessClusterConfig) etcdProcessConfigs() []*etcdProcessConfig {
for i := 0; i < cfg.clusterSize; i++ {
var curls []string
var curl, curltls string
port := cfg.basePort + 2*i
port := cfg.basePort + 3*i
curlHost := fmt.Sprintf("localhost:%d", port)
metricsHost := fmt.Sprintf("localhost:%d", port+2)

switch cfg.clientTLS {
case clientNonTLS, clientTLS:
Expand Down Expand Up @@ -300,6 +301,7 @@ func (cfg *etcdProcessClusterConfig) etcdProcessConfigs() []*etcdProcessConfig {
"--initial-cluster-token", cfg.initialToken,
"--data-dir", dataDirPath,
"--snapshot-count", fmt.Sprintf("%d", cfg.snapCount),
"--metrics-urls", metricsHost,
}
if cfg.forceNewCluster {
args = append(args, "--force-new-cluster")
Expand Down

0 comments on commit 4ad5aac

Please sign in to comment.