Skip to content

Create a Prometheus workspace

This guide shows you how to create a Amazon Managed Service for Prometheus workspace.

What is Amazon Managed Service for Prometheus?

It's a storage service for Prometheus metrics, built on Cortex.

The default retention time is 150 days.1 You can request an account-level quota increase from Amazon if you need more.

Step 1: Create a stack for observability

ok scaffold observability
cd observability

Step 2: Set up the module

Download the module template:

ok get-template prometheus

Step 3: Apply the configuration

Initialize Terraform and apply the configuration:

terraform init
terraform apply

Next steps