Export custom metrics to OTEL collector

Hi!

I am looking for a way to export Telemetry.Metrics — Telemetry.Metrics v1.0.0 metrics to OTEL collector. I know that OpenTelemetry.Tracer — opentelemetry_api v1.3.0 is used for submitting spans/traces, but I can’t find anything for metrics.

Found opentelemetry-erlang/apps/opentelemetry_experimental at main · open-telemetry/opentelemetry-erlang · GitHub and opentelemetry-erlang/apps/opentelemetry_api_experimental at main · open-telemetry/opentelemetry-erlang · GitHub, but these seem to be in experimental stage.

Even just article on how to do this “manually” would be helful.
Thank you for your time!

3 Likes

Hi! Have you been able to solve it? It’s been a year already :sweat_smile:

Current solution is to use opentelemetry_exporter | Hex. You build metrics as you normally would but just wire it up to submit those to OTEL collector. Note that the lib does not support e.g. summary metric. For our purpose this was not a showstopper. This was, unfortunately, the only way I could find to make it all work.