Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <[email protected]>
  • Loading branch information
Xunzhuo committed Oct 26, 2023
1 parent f21ee8e commit a62fc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/metrics/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func registerOTELPromExporter(otelOpts *[]metric.Option, opts registerOptions) e
func registerOTELHTTPexporter(otelOpts *[]metric.Option, opts registerOptions) error {
for _, sink := range opts.pushOptions.sinks {
if sink.protocol == v1alpha1.HTTPProtocol {
address := fmt.Sprintf("%s:%d", sink.host, sink.port)
address := net.JoinHostPort(sink.host, fmt.Sprint(sink.port))
httpexporter, err := otlpmetrichttp.New(
context.Background(),
otlpmetrichttp.WithEndpoint(address),
Expand Down

0 comments on commit a62fc8b

Please sign in to comment.