fix otlp receiver endpoint
This commit is contained in:
parent
2e6011db7a
commit
612e894247
|
|
@ -11,7 +11,8 @@ data:
|
|||
receivers:
|
||||
# Make sure to add the otlp receiver.
|
||||
# This will use the default configuration, and open up the receiver on port 55680
|
||||
otlp: {}
|
||||
otlp:
|
||||
endpoint: 0.0.0.0:55680
|
||||
processors:
|
||||
extensions:
|
||||
health_check: {}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ import (
|
|||
|
||||
func main() {
|
||||
exp, err := otlp.NewExporter(otlp.WithInsecure(),
|
||||
// Replace the address with the actual address of the collector service
|
||||
otlp.WithAddress("10.152.183.133:55680"),
|
||||
otlp.WithGRPCDialOption(grpc.WithBlock()))
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create the collector exporter: %v", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue