Skip to content

Commit

Permalink
Merge pull request #2707 from Shoothzj/fix-metrics-source-es-addr-not…
Browse files Browse the repository at this point in the history
…-correct

Fix metrics source not read es addr
  • Loading branch information
volcano-sh-bot committed Feb 25, 2023
2 parents a421473 + 31d0759 commit 80f5688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/scheduler/metrics/source/metrics_client_elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ func NewElasticsearchMetricsClient(address string, conf map[string]string) (*Ela
e.indexName = indexConf
}
var err error
e.es, err = elasticsearch.NewDefaultClient()
e.es, err = elasticsearch.NewClient(elasticsearch.Config{
Addresses: []string{address},
})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 80f5688

Please sign in to comment.