fix otlp receiver endpoint

This commit is contained in:
Stefan Prisca 2020-05-14 18:52:38 +02:00
parent 2e6011db7a
commit 612e894247
2 changed files with 4 additions and 1 deletions

View File

@ -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: {}

View File

@ -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)