Add CommunityToolkit.Aspire.Hosting.Grafana.OtelLgtm, a new hosting#1159
Draft
paulomorgado wants to merge 2 commits intoCommunityToolkit:mainfrom
Draft
Add CommunityToolkit.Aspire.Hosting.Grafana.OtelLgtm, a new hosting#1159paulomorgado wants to merge 2 commits intoCommunityToolkit:mainfrom
paulomorgado wants to merge 2 commits intoCommunityToolkit:mainfrom
Conversation
integration for the grafana/otel-lgtm Docker image which bundles the OpenTelemetry Collector, Prometheus, Loki, Tempo, Pyroscope, and Grafana into a single container for dev/test observability. Features: - AddGrafanaOtelLgtm() with Grafana UI (3000), OTLP gRPC (4317), and OTLP HTTP (4318) endpoints - WithConfig() to mount custom OTel Collector configuration - WithAppForwarding() to route all app telemetry through the stack - WithGrafanaOtelLgtmRouting() for per-resource telemetry routing - WithDataVolume() for data persistence across restarts - WithEnvironmentVariable() for container configuration - Health check on Grafana /api/health endpoint Includes: - Source project with resource, extensions, and README - Example AppHost with Api, ServiceDefaults, and collector config - Unit and integration tests mirroring OpenTelemetryCollector patterns
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1159Or
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1159" |
…a OTel-LGTM - Add GrafanaOtelLgtmSettings with configureSettings action matching OpenTelemetryCollector pattern (image, tag, enable/disable endpoints, ForceNonSecureReceiver) - Add HTTPS certificate configuration for OTLP receivers when Aspire dashboard uses HTTPS - Add Prometheus (port 9090) and Pyroscope (port 4040) HTTP endpoints - Remove WithEnvironmentVariable (thin wrapper over built-in WithEnvironment) - Remove isProxied: false from OTLP endpoints to match OTel Collector - Rename WithConfig to WithCollectorConfig for clarity - Add tests for settings, endpoint toggling, and new endpoints (25 total)
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.
integration for the grafana/otel-lgtm Docker image which bundles the OpenTelemetry Collector, Prometheus, Loki, Tempo, Pyroscope, and Grafana into a single container for dev/test observability.
Features:
Includes:
Closes #1158
PR Checklist
Other information