Closed JobberRT closed 1 year ago
There is an OTLP exporter for metrics, both for HTTP and gRPC: https://github.com/open-telemetry/opentelemetry-go/tree/main/exporters/otlp/otlpmetric
Take a look at https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp and https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc
There are not stable but I think they are good to use 😉
@dmathieu @pellared
I'm sorry, it was my oversight.
I only executed go.opentelemetry.io/otel
and forgot to execute go.opentelemetry.io/otel/...
, which resulted in not updating all the submodules.
No wonder I vaguely remember seeing the Metrics OTLP Exporter when I checked the code yesterday after the Stable API was just released.
Thank you all for your efforts! 🥰🥰🥰
First of all, the release of stable metrics api is such a great news for me(I've checking github everyday for a month and didn't expcet this soon)
What I want to achieve
trace.Tracer
andmetrics.Meter
to record tracing/metrics data, and implementConsole
(for debug)/HTTP
/GRPC
exporter for both.OTEL-Collector
OTEL-Collector's Exporter
to send data to different backend(prometheus/jaeger)Grafana
to visualize the dataWhat problem I met
It seems that metrics api doesn't provide a OTLP exporter(or anything else), only
stdoutmetric.exporter
which prints data to stdout.I see in
otel/exporters
there's two type of exporter to use:stdout
andotlp
, and trace api implements both exporter while metrics api only hasstdout
exporter.Is this a TODO or excepted? If excepted, how can I send metrics data to
OTEL-Collector
?