Blogged: Creating and consuming metrics with System.Diagnostics.Metrics APIs
https://andrewlock.net/creating-and-consuming-metrics-with-system-diagnostics-metrics-apis/
In this post I provide an introduction to the System.Diagnostics.Metrics API, show how to create a custom metric, and show how to read it with dotnet-counters
