{"id":20739380,"url":"https://github.com/cecilphillip/grafana-otel-dotnet","last_synced_at":"2025-06-14T05:04:55.548Z","repository":{"id":166236473,"uuid":"641001840","full_name":"cecilphillip/grafana-otel-dotnet","owner":"cecilphillip","description":"Sample setup showing ASP.NET Core observability with Prometheus, Loki, Grafana, Opentelemetry Collector","archived":false,"fork":false,"pushed_at":"2024-09-01T03:05:14.000Z","size":208,"stargazers_count":67,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-14T05:04:32.139Z","etag":null,"topics":["aspnetcore","dotnet","grafana","loki","opentelemetry","prometheus","tempo"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cecilphillip.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-15T15:09:52.000Z","updated_at":"2025-05-30T16:14:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c8e16d9-7ac8-4b9a-8180-a0e31705a21b","html_url":"https://github.com/cecilphillip/grafana-otel-dotnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cecilphillip/grafana-otel-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2Fgrafana-otel-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2Fgrafana-otel-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2Fgrafana-otel-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2Fgrafana-otel-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cecilphillip","download_url":"https://codeload.github.com/cecilphillip/grafana-otel-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cecilphillip%2Fgrafana-otel-dotnet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259763077,"owners_count":22907408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","dotnet","grafana","loki","opentelemetry","prometheus","tempo"],"created_at":"2024-11-17T06:24:46.612Z","updated_at":"2025-06-14T05:04:55.528Z","avatar_url":"https://github.com/cecilphillip.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASP.NET Core observability w/ Grafana OSS Stack \n\nSample application showing how to write up ASP.NET Core with OpenTelemetry and export to Prometheus, Loki, and Tempo using the OpenTelemetry Collector \n\n\n## Prerequisites\n\n* [.NET SDK v7.0+](https://get.dot.net/)\n* [Docker Desktop](https://www.docker.com/products/docker-desktop/)\n\n## Setup\nThe demo is made up of a few projects written in C#.\n* [Web API](src/BackendApiService) - Backend HTTP Weather API built with ASP.NET Core\n* [Website](src/MainService) - Front facing UI using the default Blazor Server template\n\n### Configured Ports 🔌\n| Application             | Port(s)    |\n|-------------------------|------------|\n| Web API                 | 5006       |\n| Website                 | 5238       |\n| Loki                    | 3100       |\n| Prometheus UI           | 9090       |\n| Grafana UI              | 3000       |\n| OpenTelemetry Collector | 4317, 4318 |\n\n\n### Running the demo 🚀\nRun the infrastructure components with the provided [docker-compose.yml](./docker-compose.yml) file.\n\n```shell\n\u003e  docker compose -p grafana-demo up   \n```\n\u003e 👀 This setup will create a **./tmp/** folder in the root of the project folder that will be mounted as a volume \n\u003e in the infrastructure containers.   \n\nStart both .NET applications\n\nBackend Web API\n```shell\n\u003e cd src/BackendApiService\n\u003e dotnet run \n```\nFront facing web API\n```shell\n\u003e cd src/MainService\n\u003e dotnet run \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcecilphillip%2Fgrafana-otel-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcecilphillip%2Fgrafana-otel-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcecilphillip%2Fgrafana-otel-dotnet/lists"}