Use and manage your observability stack
When a stack is created, its workspace in OpenSearch UI is ready to use. This topic describes what is set up for you and where each task is documented.
If the stack includes the demo workload, sample logs, metrics, and traces appear in the workspace within a few minutes after the stack is created. The demo workload is an optional Amazon EC2 instance that runs the OpenTelemetry demo application. For more information, see Start, stop, or open the demo workload.
What is set up for you
- Workspace
-
An observability workspace, with the stack's storage and its Prometheus workspace already attached as data sources.
- Datasets
-
For logs (
logs-otel-v1*), traces (otel-v1-apm-span*, orotel-v2-apm-span*on a domain that uses the engine optimized for log analytics), the service map (otel-v2-apm-service-map*), and agent evaluation results (otel-v1-genai-evaluation*). A stack that is created from template version 3.4.0 or later has the dataset for evaluation results. - Correlations
-
Traces are linked to their logs, and services are linked to their metrics by an application monitoring configuration that connects the trace and service map datasets to the Prometheus data source.
- Saved queries
-
For error logs, agent invocations, tool executions, slow spans, and token usage.
- Dashboards
-
An overview dashboard and an agent observability dashboard.
Alert monitors that a stack creates
A stack that is created from template version 3.3.0 or later creates alert
monitors, which you can see in its workspace. The version is the TemplateVersion output
of the Amazon CloudFormation stack. The monitors have no notification actions. To add
notifications, or to create your own monitors, see
Alerting and monitoring.
The following table lists the monitors and when a stack creates them.
| Monitor | Triggers when | Created for |
|---|---|---|
|
The health of the domain is red |
Stacks with an OpenSearch Service domain |
|
Any trace from the |
Stacks with the demo workload |
|
Any trace from the |
Stacks with the demo workload, except stacks with a domain that uses the engine optimized for log analytics |
|
Any log arrived in the last 10 minutes (demo only) |
Stacks with the demo workload |
|
Any trace from the |
Stacks with the demo workload |
|
Any trace from the |
Stacks with the demo workload |
The monitors for the demo workload trigger on any matching data, not on errors. They trigger while the demo workload sends data, so that you can see alerts in the workspace without waiting for a failure.
The AlertMonitors output of the Amazon CloudFormation stack reports how many
monitors were created and names any that were not, for example 5 of 6 ready
(skipped: Observability Stack - Cluster Health Red). A monitor that can't be
created doesn't stop the stack from being created.
Where each task is documented
An observability stack is made of existing Amazon OpenSearch Service capabilities, so each task is documented where that capability is documented. Use the following table to find it.
| To do this | See |
|---|---|
Open and manage the user interface, workspaces, and access |
|
Search and filter logs |
|
Follow a request across services |
|
Query metrics |
|
Go from a trace to the logs behind it |
|
Monitor services and view the service map |
|
Trace AI agent workflows: LLM calls, tool calls, and token usage |
|
Build and share dashboards |
|
Query with Piped Processing Language (PPL) |
|
Get alerted when something goes wrong |
|
Detect anomalies |
|
Investigate an issue with an AI agent |
|
Query your observability data from your own AI agents |
Set up the Amazon MCP Server and Agentic Observability with MCP Apps |
Send data from your applications and infrastructure |
Manage your observability stack
An observability stack is a Amazon CloudFormation stack. You view it on the Amazon OpenSearch Service console, and you change or delete it by updating or deleting the Amazon CloudFormation stack.
View a stack
On the Amazon OpenSearch Service console
Change settings
The settings of a stack are parameters of its Amazon CloudFormation stack. To change one, update the stack in the Amazon CloudFormation console, keep the current template, and change the parameter. For more information, see Update stacks directly in the Amazon CloudFormation User Guide.
Which settings you can change depends on how the stack was created. A stack created with Standard create, or with Easy create without the demo workload, has a parameter for each setting. A stack created with Easy create and the demo workload has only the administrators as a parameter. The storage backend, and for a domain its engine, are always fixed when the stack is created. For the list of settings, see Settings.
Add or remove administrators
The AdminRoleArns parameter lists the IAM roles that administer
the stack's OpenSearch UI application and can read and write its data. When you
create a stack from the console, it contains the role that you were signed in
with. To give another role access, update the stack and add the role's ARN to the
list, separated by a comma.
Start, stop, or open the demo workload
With the demo workload, you get sample logs, metrics, and traces in your stack
without instrumenting anything. The demo workload is an Amazon EC2 instance
(t3.xlarge) that runs the OpenTelemetry demo application. You are
billed for the instance while it runs.
-
To stop it, update the stack and set the
DeployDemoWorkloadparameter tofalse. Amazon CloudFormation removes the instance. -
To start it, update the stack and set the parameter to
true. -
A stack created with Easy create and the demo workload has no
DeployDemoWorkloadparameter. -
The instance has no public endpoint. To open the demo application's own web page, use the command in the
DemoAccessHintoutput of the Amazon CloudFormation stack. It forwards a local port to the instance through Session Manager, a capability of Amazon Systems Manager.
Delete a stack
To delete an observability stack, select it on the Stacks
page of the Amazon OpenSearch Service console