AsperforMias opened a new issue, #3856:
URL: https://github.com/apache/dubbo-go/issues/3856

   ### What problem would this solve?
   
   dubbo-go metrics can only be exported in the Prometheus format: `prometheus` 
is the only `MetricRegistry` registered (`metrics/prometheus/registry.go`), 
exposed by the Prometheus pull endpoint or pushed to a Pushgateway. Traces, on 
the other hand, are exported with OpenTelemetry, including OTLP.
   
   Deployments that collect telemetry through an OpenTelemetry Collector (or a 
vendor that only accepts OTLP) have to run a separate Prometheus scrape path 
just for dubbo-go metrics, while traces from the same application already go 
through OTLP. Metrics and traces then end up with different pipelines, resource 
attributes and service identities, which makes it harder to correlate them.
   
   Part of #3562.
   
   ### Proposed solution (optional)
   
   Add an opt-in OTLP metrics exporter without changing the existing metrics:
   
   - Keep the Prometheus registry as the source of the metrics, and export it 
over OTLP (HTTP and gRPC) with the OpenTelemetry Prometheus bridge 
(`go.opentelemetry.io/contrib/bridges/prometheus`) and a periodic reader, so 
metric names and labels stay the same as on the Prometheus endpoint.
   - Configure it next to the existing exporters, for example 
`metrics.WithOtlpExporter()` with an endpoint, an interval and TLS options, 
reusing the resource attributes used for tracing (`service.name` = application 
name).
   - The Prometheus endpoint and Pushgateway keep working, and nothing changes 
unless the OTLP exporter is enabled.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to