22 breaking releases

0.24.0 Jan 26, 2023
0.22.0 Dec 14, 2022
0.21.0 Oct 26, 2022
0.16.0 Jul 22, 2022
0.0.0 May 7, 2021

#1656 in Network programming

Download history 4336/week @ 2022-12-02 4011/week @ 2022-12-09 4256/week @ 2022-12-16 2477/week @ 2022-12-23 3496/week @ 2022-12-30 3420/week @ 2023-01-06 3607/week @ 2023-01-13 4120/week @ 2023-01-20 4092/week @ 2023-01-27 4082/week @ 2023-02-03 3990/week @ 2023-02-10 3936/week @ 2023-02-17 3609/week @ 2023-02-24 3662/week @ 2023-03-03 4549/week @ 2023-03-10 3924/week @ 2023-03-17

16,426 downloads per month
Used in 4 crates


38K SLoC


Please Note: The SDK is currently in Developer Preview and is intended strictly for feedback purposes only. Do not use this SDK for production workloads.

Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and the applications you run on Amazon Web Services in real time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications.

CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine whether you should launch additional instances to handle increased load. You can also use this data to stop under-used instances to save money.

In addition to monitoring the built-in metrics that come with Amazon Web Services, you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility into resource utilization, application performance, and operational health.

Getting Started

Examples are available for many services and operations, check out the examples folder in GitHub.

The SDK provides one crate per AWS service. You must add Tokio as a dependency within your Rust project to execute asynchronous code. To add aws-sdk-cloudwatch to your project, add the following to your Cargo.toml file:

aws-config = "0.54.1"
aws-sdk-cloudwatch = "0.24.0"
tokio = { version = "1", features = ["full"] }

Then in code, a client can be created with the following:

use aws_sdk_cloudwatch as cloudwatch;

async fn main() -> Result<(), cloudwatch::Error> {
    let config = aws_config::load_from_env().await;
    let client = cloudwatch::Client::new(&config);

    // ... make some calls with the client


See the client documentation for information on what calls can be made, and the inputs and outputs for each of those calls.

Using the SDK

Until the SDK is released, we will be adding information about using the SDK to the Developer Guide. Feel free to suggest additional sections for the guide by opening an issue and describing what you are trying to do.

Getting Help


This project is licensed under the Apache-2.0 License.


~342K SLoC