Amazon Redshift Serverless makes it easy to run and scale analytics in seconds. It routinely provisions and intelligently scales information warehouse compute capability to ship quick efficiency, and also you pay just for what you utilize. Simply load your information and begin querying immediately within the Amazon Redshift Question Editor or in your favourite enterprise intelligence (BI) device. Redshift Serverless measures information warehouse capability in Redshift Processing Items (RPUs), and you’ll configure base RPUs anyplace between 8–512. You can begin together with your most popular RPU capability or defaults and alter anytime later.
On this submit, we share how one can monitor your workloads operating on Redshift Serverless by way of three approaches: the Redshift Serverless console, Amazon CloudWatch, and system views. We additionally present tips on how to arrange guardrails by way of alerts and limits for Redshift Serverless to maintain your prices predictable.
Methodology 1: Monitor by way of the Redshift Serverless console
You possibly can view all person queries, together with Knowledge Manipulation Language (DML) statements, Knowledge Definition Language (DDL) statements, and Knowledge Management Language (DCL), by way of the Redshift Serverless console. You can too view the RPU consumption to run these workloads on a single web page. You can too apply filters primarily based on time, database, customers, and kind of queries.
Stipulations for monitoring entry
A superuser has entry to watch all workloads and useful resource consumption by default. If different customers want monitoring entry by way of the Redshift Serverless console, then the superuser can present crucial entry by performing the next steps:
- Create a coverage with crucial privileges and assign this coverage to required customers or roles.
- Grant question monitoring permission to the person or position.
For extra data, discuss with Granting entry to watch queries.
Question monitoring
On this part, we stroll by way of the Redshift Serverless console to see question historical past, database efficiency, and useful resource utilization. We additionally undergo monitoring choices and tips on how to set filters to slim down outcomes utilizing filter attributes.
- On the Redshift Serverless console, below Monitoring within the navigation pane, select Question and database monitoring.
- Open the workgroup you wish to monitor.
- Within the Metric filters part, increase Further filtering choices.
- You possibly can set filters for time vary, aggregation time interval, database, question class, SQL, and customers.

Two tabs can be found, Question historical past and Database efficiency. Use the Question historical past tab for acquiring particulars at a per-query degree, and the Database efficiency tab for reviewing efficiency aggregated throughout queries. Each these tabs are filtered primarily based off the choices you made.
Beneath Question historical past, you will notice the Question runtime graph. Use this graph to look into question concurrency (queries which might be operating in the identical time-frame). You possibly can select a question to view extra question run particulars, for instance, queries that took longer to run than you anticipated.

Within the Queries and hundreds part, you’ll be able to see all queries by default, however you may as well filter by standing to view accomplished, operating, and failed queries.

Navigate to the Database Efficiency tab within the Question and database monitoring part to view the next:
- Queries accomplished per second – Common variety of queries accomplished per second
- Queries length –Common period of time to finish a question
- Database connections – Variety of energetic database connections
- Operating and Queued queries – Complete variety of operating and queued queries at a Useful resource monitoring
To observe your assets, full the next steps:
- On the Redshift Serverless console, select Useful resource monitoring below Monitoring within the navigation pane.
The default workgroup shall be chosen by default, however you’ll be able to select the workgroup you want to monitor.
- Within the Metric filters part, increase Further filtering choices.
- Select a 1-minute time interval (for instance) and overview the outcomes.
You can too attempt completely different ranges to see the outcomes.

On the RPU capability used graph, you’ll be able to see how Redshift Serverless is ready to scale RPUs in a matter of minutes. This offers a visible illustration of peaks and lows in your consumption over your chosen time period.

You additionally see the precise compute utilization when it comes to RPU-seconds for the workload you ran.
Methodology 2: Monitor metrics in CloudWatch
Redshift Serverless publishes serverless endpoint efficiency metrics to CloudWatch. The Amazon Redshift CloudWatch metrics are information factors for operational monitoring. These metrics allow you to watch efficiency of your serverless workgroups (compute) and utilization of namespaces (information). CloudWatch means that you can centrally monitor your serverless endpoints in a single AWS account, or additionally cross-account and cross-Area.
- On the CloudWatch console, below Metrics within the navigation pane, select All metrics.
- On the Browse tab, select AWS/Redshift-Serverless to get to a set of metrics for Redshift Serverless utilization.

- Select Workgroup to view workgroup-related metrics.

From the listing, you’ll be able to examine your specific workgroup and the metrics accessible (on this instance, ComputeSeconds and ComputeCapacity). It’s best to see the graph is up to date and charting your information.

- To call the graph, select the pencil icon subsequent to the graph title and enter a graph title (for instance,
dataanalytics-serverless), then select Apply.

- On the Browse tab, select AWS/Redshift-Serverless and select Namespace this time.
- Choose the namespace you wish to monitor and the metrics of curiosity.

You possibly can add further metrics to your graph. To centralize monitoring, you’ll be able to add these metrics to an current CloudWatch dashboard or a brand new dashboard.
- On the Actions menu, select Add to dashboard.

Methodology 3: Granular monitoring utilizing system views
System views in Redshift Serverless are used to watch workload efficiency and RPU utilization at a granular degree over a time period. These question monitoring system views have been simplified to incorporate monitoring for DDL, DML, COPY, and UNLOAD queries. For an entire listing of system views and their makes use of, discuss with Monitoring views.
SQL Pocket book
You possibly can obtain the SQL pocket book with most used system views queries. These queries assist to reply most ceaselessly requested monitoring questions listed beneath.
- How one can monitor queries primarily based on standing?
- How one can monitor particular question elapsed time breakdown particulars?
- How one can monitor workload breakdown by question rely, and percentile run time?
- How one can monitor detailed steps concerned in question execution?
- How one can monitor Redshift serverless utilization value by day?
- How one can monitor information hundreds (copy instructions)?
- How one can monitor variety of periods, and connections?
You possibly can import this in Question Editor V2.0 and run the queries connecting to the Redshift Serverless workgroup you want to monitor.
Set limits to manage prices
If you find yourself creating your serverless endpoint, the bottom capability is defaulted to 128 RPUs. Nonetheless, you’ll be able to change it at creation time or later by way of the Redshift Serverless console.
- On the main points web page of your serverless workgroup, select the Limits tab.
- Within the Base capability part, select Edit.
- You possibly can specify Base capability from 8–512 RPUs, in increments of 8.
Every RPU gives 16 GB reminiscence, so the bottom base 8 RPU is compute with 128 GB reminiscence, and highest base 512 RPU is compute with 8 TB reminiscence.

Utilization limits
To configure utilization capability limits to restrict your total Redshift Serverless invoice, full the next steps:
- Within the Utilization limits part, select Handle utilization limits.
- To manage RPU utilization, set the utmost RPU-hours by frequency. You possibly can set Frequency to Each day, Weekly, and Month-to-month.
- For Utilization restrict (RPU hours), enter your most popular worth.
- For Motion, select Alert, Log to system desk, or Flip off person queries.

Optionally, you’ll be able to choose an current Amazon Easy Notification Service (Amazon SNS) subject or create a brand new SNS subject, and subscribe by way of e-mail to this SNS subject to be notified when utilization limits have been met.
Question monitoring guidelines for Redshift Serverless
To forestall wasteful useful resource utilization and runaway prices brought on by poorly rewritten queries, you’ll be able to implement question monitoring guidelines by way of question limits in your Redshift Serverless workgroup. For extra data, discuss with WLM question monitoring guidelines. The question monitoring guidelines in Redshift Serverless cease queries that meet the restrict that has been arrange within the rule. To obtain notifications and automate notifications on Slack, discuss with Automate notifications on Slack for Amazon Redshift question monitoring rule violations.
To arrange question limits, full the next steps:
- On the Redshift Serverless console, select Workgroup configuration within the navigation pane.
- Select a workgroup to watch.
- On the workgroup particulars web page, below Question monitoring guidelines, select Handle question limits.
You possibly can add as much as 10 question monitoring guidelines to every serverless workgroup.

The serverless workgroup will go to a Modifying state every time you add or take away a restrict.
Let’s take an instance the place you must create a serverless workgroup to your dashboards. that dashboard queries usually full in below a minute. If any dashboard question takes greater than a minute, it might point out a poorly written question or a question that hasn’t been examined effectively, and has incorrectly been launched to manufacturing.
For this use case, we set a rule with Restrict sort as Question execution time and Restrict (seconds) as 60.

The next screenshot exhibits the Redshift Serverless metrics accessible for establishing question monitoring guidelines.

Configure alarms
Alarms are very helpful as a result of they allow you to make proactive selections about your Redshift Serverless endpoint. Any utilization limits that you just arrange will routinely present as alarms on the Redshift Serverless console, and are created as CloudWatch alarms.
Moreover, you’ll be able to arrange a number of CloudWatch alarms on any of the metrics listed in Amazon Redshift Serverless metrics.
For instance, setting an alarm for DataStorage over a threshold worth would hold observe of the cupboard space that your serverless namespace is utilizing to your information.
To create an alarm to your Redshift Serverless occasion, full the next steps:
- On the Redshift Serverless console, below Monitoring within the navigation pane, select Alarms.
- Select Create alarm.

- Select your degree of metrics to watch:
- Workgroup
- Namespace
- Snapshot storage
If we choose Workgroup, we will select from the workgroup-level metrics proven within the following screenshot.

The next screenshot exhibits how we will arrange alarms on the namespace degree together with numerous metrics which might be accessible to make use of.

The next screenshot exhibits the metrics accessible on the snapshot storage degree.

If you’re beginning new, then please begin with mostly used metrics listed beneath. Please additionally Create a billing alarm to watch your estimated AWS expenses.
- ComputeSeconds
- ComputeCapacity
- DatabaseConnections
- EstimatedCharges
- DataStorage
- QueriesFailed
Notifications
After you outline your alarm, present a reputation and an outline, and select to allow notifications.
Amazon Redshift makes use of an SNS subject to ship alarm notifications. For directions to create an SNS subject, discuss with Creating an Amazon SNS subject. You have to subscribe to the subject to obtain the messages printed to it. For directions, discuss with Subscribing to an Amazon SNS subject.
You can too monitor occasion notifications to pay attention to the modifications in your Redshift Serverless Datawarehouse. Please refer Amazon Redshift Serverless occasion notifications with Amazon EventBridge for additional particulars.
Clear up
To scrub up your assets, delete the workgroup and namespace you used for making an attempt the monitoring approaches mentioned on this submit.

Conclusion
On this submit, we coated tips on how to carry out monitoring actions on Redshift Serverless by way of the Redshift Serverless console, system views, and CloudWatch, and tips on how to hold prices predictable. Attempt the monitoring approaches mentioned on this submit and tell us your suggestions within the feedback.
In regards to the Authors
Satesh Sonti is a Sr. Analytics Specialist Options Architect primarily based out of Atlanta, specialised in constructing enterprise information platforms, information warehousing, and analytics options. He has over 17 years of expertise in constructing information property and main advanced information platform packages for banking and insurance coverage shoppers throughout the globe.
Harshida Patel is a Specialist Principal Options Architect, Analytics with AWS.
Raghu Kuppala is an Analytics Specialist Options Architect skilled working within the databases, information warehousing, and analytics house. Exterior of labor, he enjoys making an attempt completely different cuisines and spending time together with his household and pals.
Ashish Agrawal is a Sr. Technical Product Supervisor with Amazon Redshift, constructing cloud-based information warehouses and analytics cloud providers. Ashish has over 24 years of expertise in IT. Ashish has experience in information warehouses, information lakes, and platform as a service. Ashish has been a speaker at worldwide technical conferences.
