opentelemetry.io icon indicating copy to clipboard operation
opentelemetry.io copied to clipboard

OTel .NET - Prometheus exporter section needs some rewrite

Open cijothomas opened this issue 1 month ago • 2 comments

https://opentelemetry.io/docs/languages/dotnet/exporters/#prometheus The prometheus export section seems to be mixing up using OTLP/push method vs scrape/pull mechanism. Both uses different exporters and requires different setup as well. Currently they are mixed up in the doc.

Proposal: Separate them to own sub-sections to avoid the confusion. The OTel .NET repo has the required contents, just need to be carried over to docs page.

cijothomas avatar Nov 20 '25 18:11 cijothomas

Hi @cijothomas!

Could you share the links to the corresponding content in the .NET repo? That way we can include the references in this issue.

Also, are you planning to open a PR for these changes? Just so we know whether we should add the help wanted label or not.

Thank you!

vitorvasc avatar Nov 21 '25 14:11 vitorvasc

Shows using OTLP with Prometheus (push) https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/docs/metrics/getting-started-prometheus-grafana

Shows Prometheus exporter (pull) https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Exporter.Prometheus.AspNetCore

cijothomas avatar Nov 21 '25 18:11 cijothomas