feat: add local telemetry playground and monitoring docs#286
Draft
udsmicrosoft wants to merge 1 commit intodocumentdb:mainfrom
Draft
feat: add local telemetry playground and monitoring docs#286udsmicrosoft wants to merge 1 commit intodocumentdb:mainfrom
udsmicrosoft wants to merge 1 commit intodocumentdb:mainfrom
Conversation
Add a complete local telemetry demo for Kind clusters with: - 3-instance DocumentDB HA cluster (1 primary + 2 streaming replicas) - Full observability stack: OTel Collector, Prometheus, Tempo, Loki, Grafana - Gateway metrics, traces, and logs via OTLP push - PostgreSQL metrics via the OTel postgresql receiver - System resource metrics via the kubeletstats receiver - Pre-built Grafana dashboard with Gateway, PostgreSQL, and System Resources - Traffic generator Job for demo workload - Kind cluster setup script with local Docker registry Sidecar injector changes: - Add POD_NAME env var (from downward API) and OTEL_RESOURCE_ATTRIBUTES with service.instance.id for per-instance metric attribution Monitoring documentation: - Architecture overview with OTLP push flow and collector deployment modes - Metrics reference with actual gateway metrics and PromQL examples - Updated mkdocs.yml navigation Signed-off-by: urismiley <urismiley@microsoft.com>
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.
Summary
Adds a complete local telemetry demo for Kind clusters and monitoring documentation.
Local Telemetry Playground (
documentdb-playground/telemetry/local/)postgresqlreceiverkubeletstatsreceiverSidecar Injector Changes
POD_NAMEenv var (from K8s downward API) andOTEL_RESOURCE_ATTRIBUTESwithservice.instance.id=$(POD_NAME)for per-instance metric attribution in multi-replica deploymentsMonitoring Documentation (
docs/.../monitoring/)db_client_operations_total,gateway_client_connections_active, pool metrics, etc.) and PromQL examplesmkdocs.ymlnavigationRelated
users/urismiley/metrics-expansion)