It works on my machine! Logging and Metrics with .NET Core
summary
A small MVC app logs via Kestrel and the built-in ILogger, then switches to Serilog (console, debug, MSSQL sink) with correlation IDs and configurable appsettings per environment; health checks expose SQL connectivity and a UI wrapper; metrics use App Metrics writing to InfluxDB and a Grafana dashboard; Application Insights ingestion via instrumentation key shows failures and full stack traces; demo includes GitHub repo with branches for each step and a claim that the dashboards and logging pipeline successfully surface errors and scale signals for a 10 million requests/day requirement.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:02Who is in the room
- 3:50Requirements
- 7:20How am I going to determine that
- 8:24Understanding the data
- 11:00New Page
- 13:00Testing
- 14:27Logging Information
- 15:37ILogger Interface
- 18:50Retrieve Log Information
- 20:17Read Configuration
- 21:58Map Request ID
- 23:14Errors
- 23:57App Insights
- 26:00Logging Frameworks
- 28:47Health Checks
- 31:25Health Checks UI
- 33:20Metrics
- 33:45App Metrics
- 36:11Dashboards
- 39:03Application Insights
related talks
52mMonitoring and alerting like a pro with Azure Monitor/Application Insights
45mLogging, Instrumentation, Dashboards and Alerts - for Developers
54m12 Factor MicroServices
50mI don't feel so well… Integrating health checks in your .NET Core solutions
43mMoving Up the Monitoring Stack
01h 02m.NET on Azure
33mProfile & Monitor Web Apps with Azure Application Insights
58mMicroservices at Scale - ASP.NET Core, Service Fabric, and Azure in production
