How to take automatic screenshots of AWS CloudWatch dashboards

Learn how to automatically capture screenshots of your public AWS CloudWatch dashboards on a schedule you define with PagePixels.

Introduction

PagePixels is a screenshot automation tool that you can use to take scheduled screenshots of web pages, including screenshots of your AWS CloudWatch dashboards.

PagePixels is free to start, and this tutorial shows you the steps to capture screenshots of a CloudWatch dashboard every 30 minutes.

Example

How to automate screenshots of CloudWatch dashboards

To take automatic screenshots of your CloudWatch dashboard every 30 minutes:

1

Create a screenshot

Log in to your PagePixels account, and click the +Create Screenshot button.

2

Set your schedule

By default, scheduled screenshots are taken every 5 minutes.

To take a screenshot every 30 minutes, change the 5 value to 30 in the input field.

3

Add URL

Copy and paste the public share link for your CloudWatch dashboard into the Website URL to Capture field.

4

Add CSS Selector

To screenshot the full CloudWatch dashboard, use the CSS Selector:

#dashboard
5

Add Wait Time and Check Incremental Scroll

Scroll to the Waiting section. Change Time to Wait to 8000 (ms).

Select the Incremental Scroll checkbox.

The changes above will help load your data visualizations before the screenshot. You can increase the wait time further if needed. Maximum is 20000 (ms) *

*Note: If you've purchased the 5-minute TimeOut Addon, your maximum wait time is: 300000 (ms)

6

Add custom CSS

CloudWatch dashboards have CSS that can interfere with capturing a full dashboard screenshot.

To resolve this issue, use the following CSS in the CSS Injection field:

[data-classname="dashboardContainerLayout"]
> div {
block-size:auto !important;
}
7

Save Screenshot

Click the green Save Screenshot button (top-right).

Your CloudWatch screenshot automation is officially set, and your first dashboard screenshot will be taken shortly.

What else can PagePixels do?

When you automate screenshots of your CloudWatch dashboards with PagePixels, you can also:

  • Use PagePixels' Screenshot API to programmatically take scheduled and instant screenshots of your CloudWatch dashboards.
  • Automate clicking buttons, filling out forms, performing a search and more with Multi-Step Screenshot functionality.
  • Convert data from third-party APIs, HTML emails, and other HTML content into screenshots using the Custom HTML Screenshots endpoint.
  • Dynamically display the latest screenshot image of your CloudWatch dashboard on your website, in an email message, or another app with a single Embed URL.
  • Send recurring screenshots of your CloudWatch dashboard to a public or private Slack channel, a Custom Webhook address, or save your screenshot images to your Dropbox account.
  • Leverage no-code integration platforms Zapier, Make, n8n, or Power Automate to take, upload, and email your CloudWatch dashboard screenshots to thousands of services, such as Gmail, Amazon S3, and OneDrive.
  • Automatically capture and AI analyze your CloudWatch dashboard screenshot image with the AI Analysis Screenshot feature.
  • Have AI compare and contrast multiple CloudWatch dashboard screenshots and other images with the Multiple Image AI Analysis endpoint of our Screenshot API.
  • Use proxies to capture screenshots from different locations around the world with the Screenshot API's Real Locations feature.
  • Record and automatically replay browser actions before capturing screenshots in your Chrome browser using the PagePixels Screenshots Chrome Extension.
  • Automate structured data extraction and AI-powered text analysis across multiple domains with PagePixels' Website Domain Research endpoints.

To see even more things you can do with PagePixels, check out our Features page.

Support

Questions? Contact us anytime by email:

support-tickets@pagepixels.com

Or send us a message through our Support page.