Reference and troubleshooting for observability stacks
Every resource of an observability stack has a name that is derived from the stack name, every setting is a parameter of the stack's Amazon CloudFormation stack, and the stack reports its endpoints as outputs. Use this topic to find a stack's resources in each service's console, to see which settings you can change after creation, and to look up the values that you need to send data.
Resources and names
The Amazon CloudFormation stack is named ObsStack-.
The names of its resources are derived from the stack name, so you can find them in
each service's console.stack-name
| Resource | Name | Created for |
|---|---|---|
Amazon OpenSearch Serverless collection, or OpenSearch Service domain |
|
Storage for logs and traces |
Amazon OpenSearch Ingestion pipeline |
|
The OTLP endpoint |
Amazon Managed Service for Prometheus workspace |
|
Storage for metrics |
OpenSearch UI application |
|
The user interface and its observability workspace |
Prometheus data source |
|
Lets OpenSearch UI query the metrics workspace. Hyphens in the stack name become underscores. |
OpenSearch Serverless encryption, network, and data access policies |
|
Serverless storage only |
IAM role for the pipeline |
|
Lets the pipeline write to storage and to the metrics workspace |
IAM role for metrics queries |
|
Lets the Prometheus data source read the metrics workspace |
Lambda functions and their roles |
Names that start with |
Run once by Amazon CloudFormation during creation to connect the data source, set up the workspace, and apply retention or access mappings. They are not invoked afterward except when you update or delete the stack. |
Amazon EC2 instance, security group, and instance profile |
Assigned by Amazon CloudFormation |
The demo workload, when it is deployed |
Because the IAM role names are derived from the stack name, a stack name can be used only once in an account, across all Amazon Web Services Regions.
Settings
The following table lists the settings of a stack, their default values, and whether you can change them after the stack is created. The create page in the console shows the same information for the options that you select, before you create the stack.
| Setting | Amazon CloudFormation parameter | Default | Change after creation |
|---|---|---|---|
Administrators |
|
The role that you are signed in with |
Yes |
Demo workload |
|
|
Yes |
Ingestion capacity |
|
1–4 OCU |
Yes |
Metrics retention |
|
150 days |
Yes |
Log and trace retention (serverless) |
|
30 days |
Yes |
Collection capacity (serverless) |
|
0–16 OCU. The collection scales down when it is idle. |
Yes |
Domain instances (domain) |
|
One instance with 100 GiB of storage |
Yes |
Storage backend and engine |
Chosen by the template |
Amazon OpenSearch Serverless with Easy create |
No |
The Change after creation column applies to stacks created with Standard create, or with Easy create without the demo workload, where each setting is a parameter of the Amazon CloudFormation stack. A stack created with Easy create and the demo workload has the default values built into its template: its only parameters are the stack name and the administrators, so the administrators are the only setting that you can change by updating its parameters.
Stack outputs
The Amazon CloudFormation stack reports the following values on its Outputs tab.
| Output | Value |
|---|---|
|
The URL of the OpenSearch UI application |
|
The ID of the observability workspace in the application |
|
The OTLP endpoint for logs, metrics, and traces |
|
The ARN of the ingestion pipeline, for the |
|
The endpoint of the storage for logs and traces |
|
The endpoint of the Prometheus workspace |
|
The ARN of the Prometheus data source |
|
The demo workload instance, and a command to reach its web page. Present only when the demo workload is deployed. |
|
How many alert monitors the stack created. Present for template version 3.3.0 or later. |
|
The version of the template that created the stack |
The stack has other outputs that this table doesn't list, such as the ARNs of
its resources (for example, AmpWorkspaceArn) and the ID of the
application (AppId).
Quotas and limits
The following limits apply to observability stacks:
-
A stack name must be 3–17 characters. It can contain only lowercase letters, numbers, and hyphens, must start with a letter, and must end with a letter or number.
-
A stack name can be used only once in an Amazon Web Services account, across all Amazon Web Services Regions, because the names of the stack's IAM roles are derived from it.
Each resource that a stack creates counts toward the quota of its service in the Amazon Web Services Region. A stack creates one of each of the following:
-
An Amazon OpenSearch Serverless collection, or an OpenSearch Service domain
-
An Amazon OpenSearch Ingestion pipeline
-
An Amazon Managed Service for Prometheus workspace
-
An OpenSearch UI application
-
A Prometheus data source
For the quotas of Amazon OpenSearch Service, see Amazon OpenSearch Service quotas.
Troubleshoot an observability stack
Use the following information to resolve common issues with observability stacks.
Observability stack creation failed
Amazon CloudFormation creates the resources of a stack in order, and stops and rolls back if one of them can't be created. The most common causes are a resource name that is already in use, a service quota that has been reached, and missing permissions to create one of the resources, including IAM roles. The following sections describe the first two.
To find out which resource failed, open the stack's page on the Amazon OpenSearch Service console. It shows the resource where creation stopped. For the reason, open the stack in the Amazon CloudFormation console and view its Events tab. A failed stack can't be updated. Delete it in Amazon CloudFormation, and then create the stack again.
Observability stack rolled back immediately and created no resources
The template accepts only the stack name that the console fills in,
ObsStack-. If you change the
stack name in the Amazon CloudFormation console, the stack rolls back without creating any
resources. Delete it in Amazon CloudFormation, and then create the stack again without changing
the name.stack-name
Observability stack resource name already exists
Creation fails with a message that a resource, such as an IAM role, already exists. Resource names are derived from the stack name, and IAM role names are unique in an account across all Amazon Web Services Regions. If a stack with the same name exists in any Region, or a failed stack with that name hasn't been deleted yet, choose a different name or delete the other stack first.
Observability stack service quota exceeded
A stack creates one resource of each kind, and each counts toward that service's quota in the Amazon Web Services Region. For example, creation fails at the Prometheus data source with a message that the limit for the number of data sources has been exceeded. Delete resources that you no longer need, or request a quota increase, and then create the stack again. For what a stack creates, see Quotas and limits.
No telemetry data appears in your observability stack
-
The demo workload takes a few minutes after the stack is created to start sending data.
-
A new ingestion pipeline can take several minutes after it becomes active before its endpoint accepts data. Make sure that your collector retries.
-
Check that the sender has the
osis:Ingestpermission on the stack's pipeline, signs requests for theosisservice, and uses the paths in Find the endpoint. -
Check the pipeline's status and metrics on its page in the console. The stack's page links to it.
Can't open the workspace of your observability stack or see its data
Only the roles in the stack's AdminRoleArns parameter are
administrators of the application and can read its data. If you sign in with a
different role, add that role to the stack. For more information, see
Add or remove administrators.