私はasp.netコアWebアプリケーションを持っています。私はmetrics.netを使いたいと思います。asp.netコアでmetrics.netを設定しようとしています
前に、私はメトリックを設定して、このようなowin:
Metric.Config
.WithInternalMetrics()
.WithOwin(middleware => app.Use(middleware), config => config
.WithRequestMetricsConfig(c => c.WithErrorsMeter()
.WithActiveRequestCounter()
.WithPostAndPutRequestSizeHistogram()
.WithRequestTimer()
, new[] {
new Regex("(?i)^metrics"),
new Regex("(?i)^health"),
new Regex("(?i)^json")
}
)
.WithMetricsEndpoint(endpointConfig =>
{
endpointConfig
.MetricsTextEndpoint(enabled: false);
})
);
は、どのように私は、ASPネットコアでいくつかの同様の操作を行うことができますか?
Metric.netはまだdotnetコアをサポートしていません。完全なフレームワークでのみ使用できます。こちら[docs.asp.net](https://docs.asp.net/en/latest/fundamentals/owin.html)をご覧ください。 [GitHubの問題](https://github.com/etishor/Metrics.NET/issues/133) – Kalten
@Kalten:ASP.NET Coreを(標準).NET Framework上で実行することができます。 Johanの答えを使用して、Metrics.NETのOWINアダプタを正常に設定できました。 –