question

AshutoshPareek-3300 avatar image
1 Vote"
AshutoshPareek-3300 asked ZhiLv-MSFT commented

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

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?

dotnet-csharpdotnet-aspnet-core-webapi
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AshutoshPareek-3300,

It should depend on your application and requirement. You could view the library document and check the requirement and features to use the package. Then, compare the performance when use them in your application. After that you could find which one is suits you.

0 Votes 0 ·

0 Answers