Which library is prefered for metrics generation on prometheus (App.Metrics vs Prometheus.net)

Ashutosh Pareek 26 Reputation points
2021-05-26T10:25:29.763+00:00

I am trying to add metrics observability part in my .net core application. I currently see two libraries for this purpose.

  1. https://www.app-metrics.io/reporting/reporters/prometheus/ (https://github.com/AppMetrics/AppMetrics/tree/features/4.2.0)
  2. https://github.com/prometheus-net/prometheus-net

Both repositories are activite and I see articles to show metrics in .net via both libraries. Is there any reason I should prefer one over another?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,192 questions
{count} vote