Skip to content

Commit

Permalink
Fix provisional code for agent metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Feb 19, 2019
1 parent 75ffedf commit 4d48028
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func setupAuditor(id int, t *testing.T) (scope.TestF, scope.TestF) {

before := func(t *testing.T) {
auditorConf := auditor.DefaultConfig()
auditorConf.MetricsAddr = fmt.Sprintf("127.0.0.1:810%d", id)
auditorConf.QEDUrls = []string{QEDUrl}
auditorConf.PubUrls = []string{StoreURL}
auditorConf.APIKey = APIKey
Expand Down Expand Up @@ -118,6 +119,7 @@ func setupMonitor(id int, t *testing.T) (scope.TestF, scope.TestF) {

before := func(t *testing.T) {
monitorConf := monitor.DefaultConfig()
monitorConf.MetricsAddr = fmt.Sprintf("127.0.0.1:820%d", id)
monitorConf.QEDUrls = []string{QEDUrl}
monitorConf.PubUrls = []string{StoreURL}
monitorConf.APIKey = APIKey
Expand Down Expand Up @@ -148,6 +150,7 @@ func setupPublisher(id int, t *testing.T) (scope.TestF, scope.TestF) {

before := func(t *testing.T) {
conf := publisher.DefaultConfig()
conf.MetricsAddr = fmt.Sprintf("127.0.0.1:830%d", id)
conf.PubUrls = []string{StoreURL}

pu, err = publisher.NewPublisher(*conf)
Expand Down

0 comments on commit 4d48028

Please sign in to comment.