Add OpenTelemetry Collector and Grafana Dashboards#871
Merged
Conversation
…or metrics and logs
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an OpenTelemetry Collector and a local Grafana “LGTM” stack to improve observability of the OpenFeature Aspire sample, including provisioned dashboards for feature flag evaluation metrics.
Changes:
- Adds an LGTM (Grafana/Prometheus/Tempo/Loki/etc.) container plus an OpenTelemetry Collector configured via
otel/config.yaml. - Provisions Grafana dashboards (overview + feature flag metrics) via mounted provisioning configuration.
- Updates package references and docs to include the new observability components.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Garage.AppHost/Program.cs | Adds LGTM container + OpenTelemetry Collector wiring in the Aspire AppHost. |
| src/Garage.AppHost/otel/config.yaml | Collector pipeline config to export traces/metrics/logs to Aspire + LGTM. |
| src/Garage.AppHost/grafana/provisioning/dashboards/custom/openfeature-overview.json | New overview dashboard for OpenFeature observability. |
| src/Garage.AppHost/grafana/provisioning/dashboards/custom/flags.json | New feature flag evaluation metrics dashboard. |
| src/Garage.AppHost/grafana/provisioning/dashboards/custom.yaml | Grafana provisioning provider configuration for dashboards. |
| src/Garage.AppHost/Garage.AppHost.csproj | Adds the OpenTelemetry Collector hosting package reference. |
| Directory.Packages.props | Centrally pins the new CommunityToolkit collector package version. |
| README.md | Documents Grafana endpoint and dashboard provisioning workflow. |
…ration with CORS settings
…d Playwright test artifacts to .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce the OpenTelemetry Collector package to the Community and AppHost projects, integrate it with a configuration file, and set up Grafana for monitoring. Provision Grafana dashboards for feature flag evaluation metrics and an overview dashboard to enhance observability.