Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to expose .NET well known EventCounters to Open Telemetry

Microsoft documentation lists some well known event counters. How do I expose those to an Open Telemetry collector? (using the Prometheus exporter, ideally)

like image 553
Moose Morals Avatar asked Oct 15 '25 15:10

Moose Morals


1 Answers

According to the OpenTelemetry GitHub ticket Export .net event counters through OpenTelemetry, these counters aren't directly supported yet. They say:

Once EventCounter -> Metric API instrumentation lands, this would be easier. For now, you'll have to write own event counter listener, and in turn, convert them to the new Metrics API.

As of Jan. 11, 2022, this work is slated to be part of "the -contrib repo." Unfortunately, as of Sep. 2022, they're still working on it -- though it does appear to be getting close.

like image 192
ladenedge Avatar answered Oct 17 '25 03:10

ladenedge