Microsoft documentation lists some well known event counters. How do I expose those to an Open Telemetry collector? (using the Prometheus exporter, ideally)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With