-
This is a discussion moved from issue #329. As reported in issue #329, dotnet monitor cannot (yet?) export metrics based on System.Diagnostics.Metrics. Does anyone have a workaround? Our project is being deployed in Kubernetes. In our environment, I have to use Prometheus scrape. Right now, this is working great for the dotnet-monitor metrics. However, I am missing a lot of other metrics exposed by our application or 3rd party libraries. I could use another sidecar that does metric aggregation. I have heard that the .NET API Gateway Ocelot can aggregate responses. I was thinking it would be possible expose a /metrics endpoint (using OpenTelemetry) in our application and have Ocelot fetch both dotnet-monitor metrics and the application metrics to the Prometheus scrape endpoint. This a more complicated than it really should be. Does anyone have an example of exporting both dotnet-monitor metrics and System.Diagnostics.Metrics for Prometheus scrape? The metrics aggregator can use any technology. Preferred approach would not require me building a custom container. A stable container with configuration file / environment variables will minimize deployment effort. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
darraghjones suggested to stop using dotnet monitor for metrics all together... #329 (comment) |
Beta Was this translation helpful? Give feedback.
darraghjones suggested to stop using dotnet monitor for metrics all together... #329 (comment)