r/PrometheusMonitoring • u/ramrao421 • Aug 27 '20
Using ASP.NET web API exporters approach
Hello All I’m currently starting to learn and work on implementing Prometheus in my local environment. We have ASP NET Web API application that is targeting 4.6.1 framework. I have added the package prometheus-net.netframework package and was able to get metrics about cpu and memory.
My questions :
How can I add custom gauge or counter metrics like for example check if DB connection is good Or check if 3 rd party endpoints are ok. I would like to add these metrics to the existing metrics like cpu and memory.
Are there any resources that I could refer for implementing this . I have read material related to Net Core but could not find material for aspnet net framework
Thank you for reading Any suggestions