Metrics in .NET Using OpenTelemetry and Prometheus
summary
Overview of using OpenTelemetry and Prometheus for metrics in .NET: explains that OpenTelemetry now has a stable .NET metrics API, describes how to instrument .NET applications to add metrics, and discusses collection options. Includes code examples and a demo showing scraping metrics into Prometheus and visualizing them in Grafana, plus best practices for .NET metric usage.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:01Metrics and their importance
- 3:11.NET metrics overview
- 6:40OpenTelemetry basics
- 10:13Metrics API in .NET
- 13:58Basic metrics setup demo
- 17:33Prometheus overview
- 20:24Exporting to Prometheus demo
- 23:32Enriching application metrics
- 26:04Uptime metric demo
- 29:39Business logic instrumentation
- 37:27Health checks and metrics
- 41:40OpenTelemetry Collector
- 47:45Alternatives to OpenTelemetry
- 51:57Prometheus alerting
- 55:08Grafana visualization
- 58:00Conclusion
