Custom Metrics to AWS CloudWatch from ASP.NET Core
I was playing around with AWS CloudWatch and was curious to send custom metrics from ASP.NET Core. Specifically the execution time of an HTTP request. AWS SDK I created a simple middleware that starts a StopWatch before calling the next middleware in the pipeline. When it returns, stop the StopWatch and send the data to CloudWatch. First is to add the relevant NuGet packages. Configuration If you’ve never used the AWS SDK/Packages, I recommend checking out my post on Configuring AWS SDK in ASP.NET Core. It goes over creating a named profile to store your AWS credentials and using appSettings… Read More »Custom Metrics to AWS CloudWatch from ASP.NET Core