This project serves as an example of how to monitor an ASP.Net Core application via OpenTelemetry.
It makes use of the following technologies and projects:
- .NET 8.0
- ASP.NET Core 8.0
- Swashbuckle
- Docker
- Docker compose
- OpenTelemetry
- OpenTelemetry Collector to receive the OpenTelemetry data from the application and distribute it to the proper backends
- Grafana Tempo as the tracing backend
- Prometheus as the metrics backend
- Grafana Loki as the logs backend
- Grafana as the observability UI
Simply run the docker compose project from visual studio, or from a terminal by executing docker compose up
in the root folder.
Access the web api at http://localhost:8080/swagger and try to create traces, metrics and logs by calling the corresponding endpoints.
Access grafana at http://localhost:3001 and check that the traces, metrics and logs have been registered.