Skip to content

Add OpenTelemetry Collector and Grafana Dashboards#871

Merged
askpt merged 8 commits into
mainfrom
askpt/add-otel-collector
Jul 4, 2026
Merged

Add OpenTelemetry Collector and Grafana Dashboards#871
askpt merged 8 commits into
mainfrom
askpt/add-otel-collector

Conversation

@askpt

@askpt askpt commented Jul 4, 2026

Copy link
Copy Markdown
Owner

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.

Copilot AI review requested due to automatic review settings July 4, 2026 13:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/Garage.AppHost/Program.cs Outdated
Comment thread src/Garage.AppHost/otel/config.yaml
Comment thread README.md Outdated
Comment thread src/Garage.AppHost/Program.cs Outdated
Copilot AI review requested due to automatic review settings July 4, 2026 15:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 4 comments.

Comment thread src/Garage.AppHost/Program.cs
Comment thread src/Garage.AppHost/Program.cs
Comment thread src/Garage.AppHost/Program.cs
Comment thread src/Garage.AppHost/otel/config.yaml
@askpt askpt merged commit 458fbb6 into main Jul 4, 2026
13 checks passed
@askpt askpt deleted the askpt/add-otel-collector branch July 4, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants