System Memory Health Check for ASP.NET Core

I found a temporary cross-platform solution for .NET Core to read system memory metrics until framework-level libraries appear. This blog post shows how to build an ASP.NET Core health check for system memory metrics.

Getting Started

We are using the MemoryMetricsClient class defined in the blog post referred to above. The class with MemoryMetrics result is given here again.