p2p / dht communication framework
Create a new file called otel-config.yml:
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
service:
pipelines:
metrics:
receivers: [otlp]
exporters: [debug]Then start the metrics service with:
docker run --rm -p 4318:4318 -v "$PWD/otel-config.yaml:/etc/otelcol/config.yaml" otel/opentelemetry-collector:latestThe bootstrap server can then be configured to report metrics to the OTLP endpoint:
cargo run -- --listen 0.0.0.0:9000 --otlp-endpoint http://localhost:4318/v1/metricsYou will see metrics in the Docker log as they are reported.