Skip to content

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.

  • Docker and Docker Compose (v2.20+)
  • At least 8 GB of available RAM
  • macOS, Linux, or WSL2 on Windows

Installation takes 8–15 minutes depending on your internet connection.

Terminal window
curl -fsSL https://raw.githubusercontent.com/opensearch-project/observability-stack/main/install.sh | bash

The 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

Credentials are stored in the .env file at the installation root:

Terminal window
cd observability-stack
grep -E '^OPENSEARCH_(USER|PASSWORD)=' .env
ComponentPurpose
OpenTelemetry CollectorReceives traces, logs, and metrics via OTLP
Data PrepperProcesses traces, generates service maps and RED metrics
OpenSearchStores and indexes all observability data
PrometheusScrapes and stores time-series metrics
OpenSearch DashboardsVisualizes data, agent traces, and service maps
Example servicesMulti-agent travel planner, weather, and events agents that generate agent traces with GenAI semantic conventions

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.yml

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.yml

This adds ~2 GB memory usage. See Resource Requirements for details.

After any .env change: docker compose down && docker compose up -d

Component images are updated on new OpenSearch releases. To pull the latest:

Terminal window
cd observability-stack
git pull
docker compose down
docker compose up -d --pull always

The stack runs via Docker Compose from the cloned observability-stack repository. To stop all services and remove data:

Terminal window
cd observability-stack
docker compose down -v --remove-orphans

To fully remove, delete the repository directory.