.NET 6.0 OpenTelemetry Metrics #10
Replies: 3 comments 10 replies
-
Hi, How are you exporting metrics? Using direct otel to elastic or using collector between? In case of colector it require some setup in collector config file to resend this data to elastic.. |
Beta Was this translation helpful? Give feedback.
-
Not sure why, but suddenly the RequestCounter ( is the name of the counter I gave in the .NET web api ) is also selectable in the metrics explorer. Still the sum seems off somehow. But anyhow the data was already flowing through from the get go it seems :D |
Beta Was this translation helpful? Give feedback.
-
Ha nevermind, I guess the field was indeed added to the index! I guess because I selected it in the data discovery graph as filter. |
Beta Was this translation helpful? Give feedback.
-
With .NET 6 we should be able to use System.Diagnostics.Metrics to push OpenTelemetry metrics.
I tried to set this up with guidence of this repository about using the Elastic stack, my take on it is pushed here : https://github.com/Depechie/OpenTelemetryElastic
But I'm not getting any metrics visible in Kibana. The OpenTelemetry tracing is working fine though, so the setup of the apm server and OpenTelemetry Collector is correct I guess.
Did you try this already?
I just wanted to try to visualize a counter : https://github.com/Depechie/OpenTelemetryElastic/blob/main/OpenTelemetryElastic/Controllers/WeatherForecastController.cs#L31
Beta Was this translation helpful? Give feedback.
All reactions