Installation
The OpenSearch Observability Stack is an open-source, OpenTelemetry-native observability platform. It runs locally via Docker Compose and provides traces, logs, metrics, dashboards, service maps, and AI agent tracing out of the box.
Prerequisites
Section titled “Prerequisites”- Docker and Docker Compose (v2.20+)
- At least 8 GB of available RAM
- macOS, Linux, or WSL2 on Windows
Installation
Section titled “Installation”Installation takes 8–15 minutes depending on your internet connection.
curl -fsSL https://raw.githubusercontent.com/opensearch-project/observability-stack/main/install.sh | bashThe installer TUI guides you through component selection and configuration. Installation takes 8–15 minutes. Once complete, the stack starts automatically.
Access OpenSearch Dashboards at http://localhost:5601
git clone https://github.com/opensearch-project/observability-stack.gitcd observability-stackdocker compose up -dAccess OpenSearch Dashboards at http://localhost:5601
Credentials are stored in the .env file at the installation root:
cd observability-stackgrep -E '^OPENSEARCH_(USER|PASSWORD)=' .envWhat gets installed
Section titled “What gets installed”| Component | Purpose |
|---|---|
| OpenTelemetry Collector | Receives traces, logs, and metrics via OTLP |
| Data Prepper | Processes traces, generates service maps and RED metrics |
| OpenSearch | Stores and indexes all observability data |
| Prometheus | Scrapes and stores time-series metrics |
| OpenSearch Dashboards | Visualizes data, agent traces, and service maps |
| Example services | Multi-agent travel planner, weather, and events agents that generate agent traces with GenAI semantic conventions |
Example services
Section titled “Example services”The stack ships with example AI agent services that generate agent traces automatically — a multi-agent travel planner, weather agent, and events agent. These are enabled by default.
To disable them, comment out this line in .env:
# INCLUDE_COMPOSE_EXAMPLES=docker-compose.examples.ymlOpenTelemetry Demo
Section titled “OpenTelemetry Demo”You can also run the OpenTelemetry Demo, a full microservices e-commerce app that generates realistic telemetry. Uncomment in .env:
INCLUDE_COMPOSE_OTEL_DEMO=docker-compose.otel-demo.ymlThis adds ~2 GB memory usage. See Resource Requirements for details.
After any .env change: docker compose down && docker compose up -d
Updating
Section titled “Updating”Component images are updated on new OpenSearch releases. To pull the latest:
cd observability-stackgit pulldocker compose downdocker compose up -d --pull alwaysUninstall
Section titled “Uninstall”The stack runs via Docker Compose from the cloned observability-stack repository. To stop all services and remove data:
cd observability-stackdocker compose down -v --remove-orphansTo fully remove, delete the repository directory.
Next steps
Section titled “Next steps”- Platform Overview — architecture and data flow
- Core Concepts — key terms and ideas
- Quickstart — send your first traces