GitXplorerGitXplorer
c

grafana-otel-dotnet

public
54 stars
6 forks
1 issues

Commits

List of commits on branch main.
Unverified
35aa28675611290d87e32630d28a90f5bfdb5bee

update to use grafana/otel-lgtm container

ccecilphillip committed 19 days ago
Unverified
58b58c1e3e74a8569bf2b558561ba5999f5c1348

add required resource attributes

ccecilphillip committed 9 months ago
Unverified
b4979219849ded5173420ea2623ab657fd6aa119

move configs to folder

ccecilphillip committed 9 months ago
Unverified
d79c6fc9e308106704e8da87594dd96da0cb3b4d

upgrade SDK to net8

ccecilphillip committed 9 months ago
Unverified
91785f45b1c7c197de1d40848b9e67a91bd4bdc2

Forward raw log payload

ccecilphillip committed a year ago
Unverified
d2f459183c7006535c731f9b027cd930e8bd50b7

Replace Serilog Loki sink with OpenTelemetry

ccecilphillip committed a year ago

README

The README file for this repository.

ASP.NET Core observability w/ Grafana OSS Stack

Sample application showing how to write up ASP.NET Core with OpenTelemetry and export to Prometheus, Loki, and Tempo using the OpenTelemetry Collector

Prerequisites

Setup

The demo is made up of a few projects written in C#.

  • Web API - Backend HTTP Weather API built with ASP.NET Core
  • Website - Front facing UI using the default Blazor Server template

Configured Ports 🔌

Application Port(s)
Web API 5006
Website 5238
Loki 3100
Prometheus UI 9090
Grafana UI 3000
OpenTelemetry Collector 4317, 4318

Running the demo 🚀

Run the infrastructure components with the provided docker-compose.yml file.

>  docker compose -p grafana-demo up   

👀 This setup will create a ./tmp/ folder in the root of the project folder that will be mounted as a volume in the infrastructure containers.

Start both .NET applications

Backend Web API

> cd src/BackendApiService
> dotnet run 

Front facing web API

> cd src/MainService
> dotnet run