Implementing AWS: Design, Build, and Manage your Infrastructure
by Yohan Wadia, Rowan Udell, Lucas Chan, Udita Gupta
How it works...
In this recipe, we use the built-in put-metric-data AWS CLI command to send our metric to CloudWatch.
We start by defining the metric name and namespace that the values will appear under. This is important because it defines how we will see the metric in the console and dashboards. Names should identify and describe the metric. They do not need to be unique, as the dimension(s) we add will take care of that (we will discuss this later). Namespaces are used to group similar metrics together, like a category. The built-in metrics appear under the namespace AWS/. For example, EC2 metrics appear under the AWS/EC2 namespace.
We then specify a dimension for the metric. A dimension is a way to uniquely identify similar metrics. In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access