How opensearch-project/observability-stack works
Observability Stack provides telemetry collection, storage, querying, and visualization, with AWS deployment as a major supported path. The AWS CLI guides configuration and provisions managed resources; the CDK path declares infrastructure. The README documents the wider OpenTelemetry, Data Prepper, OpenSearch, Prometheus/Cortex, Alertmanager, and Dashboards capabilities, but their local runtime manifests are outside the supplied tree. Edges reflect shown calls, indexed references, or README statements; unsampled subsystem internals are not inferred.
Main entry points: main.mjs CLI Entry · observability-stack.ts Stack Orchestrator · create.mjs Create Wizard · opensearch-app.ts OpenSearch App
Components 32
AWS CLI Deployment
- CLI Entry
aws/cli-installer/src/main.mjs - Create Wizard
aws/cli-installer/src/commands/create.mjs - CLI Options
aws/cli-installer/src/cli.mjs - Interactive Setup
aws/cli-installer/src/interactive.mjs - Configuration
aws/cli-installer/src/config.mjs - AWS Profile
aws/cli-installer/src/aws-profile.mjs - AWS Provisioning
aws/cli-installer/src/aws.mjs - Pipeline Renderer
aws/cli-installer/src/render.mjs - Evaluation Index
aws/cli-installer/src/evaluation-index.mjs - Stack Removal
aws/cli-installer/src/destroy.mjs - Resource Inventory
aws/cli-installer/src/ec2-demo.mjs
AWS CDK Infrastructure
- CDK App
aws/cdk/bin/app.ts - Stack Orchestrator
aws/cdk/lib/observability-stack.ts - Stack Parameters
aws/cdk/lib/stack-parameters.ts - Base Infrastructure
aws/cdk/lib/infra-stack.ts - OpenSearch App
aws/cdk/lib/opensearch-app.ts - Ingestion Pipeline
aws/cdk/lib/ingestion-pipeline.ts - Custom Resource Response
aws/cdk/custom-resources/shared/cfn-response.ts
Observability UI
- UI Setup Client
aws/cli-installer/src/opensearch-ui-init.mjs - Agent Evaluations UI
aws/cli-installer/src/agent-evals-ui.mjs - Agent Panels
aws/cli-installer/src/agent-panels.mjs - Dashboard Assets
aws/cli-installer/src/arch-image.mjs - OpenSearch UI
Telemetry Stack
- Telemetry Producers
- OTel Collector
- Data Prepper
- OpenSearch
- Prometheus / Cortex
- Alertmanager
- Dashboards
- PPL Queries
Other components
- Operator
Connections 32
- Operator → CLI Entry: starts deploy
README.md - Create Wizard → Interactive Setup: runs wizard
aws/cli-installer/src/commands/create.mjs - Create Wizard → CLI Options: validates options
aws/cli-installer/src/commands/create.mjs - Create Wizard → CLI Entry: executes deployment
aws/cli-installer/src/commands/create.mjs - CLI Entry → CLI Options: parses arguments
aws/cli-installer/src/main.mjs - CLI Entry → AWS Profile: selects profile
aws/cli-installer/src/main.mjs - CLI Entry → AWS Provisioning: provisions resources
aws/cli-installer/src/main.mjs - CLI Entry → Pipeline Renderer: renders pipeline
aws/cli-installer/src/main.mjs - CLI Entry → Stack Removal: dispatches removal
aws/cli-installer/src/main.mjs - CLI Entry → UI Setup Client: initializes UI
aws/cli-installer/src/main.mjs - CLI Entry → Resource Inventory: launches demo
aws/cli-installer/src/main.mjs - CLI Entry → Evaluation Index: prepares index
- AWS Provisioning → Evaluation Index: creates evaluation index
aws/cli-installer/src/aws.mjs - UI Setup Client → Agent Evaluations UI: sets up evaluations
aws/cli-installer/src/opensearch-ui-init.mjs - UI Setup Client → OpenSearch UI: configures workspace
aws/cli-installer/src/opensearch-ui-init.mjs - OpenSearch UI → Agent Panels: provides agent panels
- OpenSearch UI → Dashboard Assets: uses dashboard assets
- CDK App → Stack Orchestrator: creates stack
aws/cdk/bin/app.ts - Stack Orchestrator → Stack Parameters: uses parameters
aws/cdk/lib/observability-stack.ts - Stack Orchestrator → Base Infrastructure: references infrastructure
aws/cdk/lib/observability-stack.ts - Stack Orchestrator → OpenSearch App: builds UI resources
aws/cdk/lib/observability-stack.ts - Stack Orchestrator → Ingestion Pipeline: builds ingestion
aws/cdk/lib/observability-stack.ts - OpenSearch App → OpenSearch UI: creates application
aws/cdk/lib/opensearch-app.ts - OpenSearch App → OpenSearch UI: seeds workspace
aws/cdk/lib/opensearch-app.ts - Telemetry Producers → OTel Collector: sends OTLP
README.md - OTel Collector → Data Prepper: routes telemetry
README.md - Data Prepper → OpenSearch: indexes logs and traces
README.md - OTel Collector → Prometheus / Cortex: stores metrics
README.md - Prometheus / Cortex → Alertmanager: routes alerts
README.md - OpenSearch → Dashboards: explores data
README.md - Prometheus / Cortex → Dashboards: visualizes metrics
README.md - Dashboards → PPL Queries: queries logs and traces
README.md