djluck / prometheus-net.DotNetRuntime

Exposes .NET core runtime metrics (GC, JIT, lock contention, thread pool) using the prometheus-net package
MIT License
357 stars 85 forks source link

How could we add metrics for custom event counters? #56

Open WeihanLi opened 3 years ago

WeihanLi commented 3 years ago

Sometimes, we may use some other event counters, for example when I use Microsoft.Data.SqlClient, I wanna record some metrics from its event counters, is there some recommended method to implement this?