带有维度的Amazon Web Service CloudWatch自定义指标 [英] Amazon Web Service CloudWatch custom metrics with dimensions

查看:95
本文介绍了带有维度的Amazon Web Service CloudWatch自定义指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将数据推送到AWS CloudWatch上的自定义指标中,但想了解有关维度及其用途的更多信息?我已经阅读过AWS文档,但并没有真正解释它们的用途以及它如何影响AWS管理控制台中的图形UI。

I'm trying to push data into a custom metric on AWS CloudWatch but wanted to find out more about the Dimensions and how these are used? I've already read the AWS documentation but it doesn't really explain what they are used for and how it affects the graphing UI in the AWS Management Console.

Are Dimensions一种进一步细分度量标准值的方法?

Are Dimensions a way to breakdown the Metric Value further?

举一个虚构的例子,假设我有一个度量标准,它可以计算房间中的人数。指标的名称称为人口。我每分钟报告一次计数。 度量标准计数设置为人数。维度字段只是名称和值对的列表。假设我报告一个值为90的数据点,是否可以添加两个维度,如下所示:
1.名称:Male,Count:50
2. Name:Female,Count:40

To give a fictitious example, say I have a metric which counts the number of people in a room. The metric's name is called "Population". I report the count once a minute. The Metric Count is set to the number of people. The Dimension field is just a list of Name and Value pairs. Assuming I report a datapoint with a value of 90, can I add two Dimensions as follows: 1. Name: Male, Count: 50 2. Name: Female, Count: 40

任何帮助将不胜感激。

推荐答案

是的,您可以添加尺寸,例如您对自定义指标进行了描述。

Yes, you can add dimensions such as you described to your custom metrics.

但是,CloudWatch 不能能够跨这些维度进行汇总,因为它不知道这些维度的分组。基本上:

However, CloudWatch is NOT able to aggregate across these dimensions, as it doesn't know the groups of these dimensions. Basically:


Amazon CloudWatch将维度的每个唯一组合视为
的单独指标。例如,下图
中对mon-put-data的每次调用都会创建一个单独的指标,因为每次调用都使用
不同的维度集。即使四个调用
都使用相同的度量标准名称(ServerStats),也是这样。

Amazon CloudWatch treats each unique combination of dimensions as a separate metric. For example, each call to mon-put-data in the following figure creates a separate metric because each call uses a different set of dimensions. This is true even though all four calls use the same metric name (ServerStats).

请参阅有关尺寸的更多信息CloudWatch 此处

See more information about dimensions in CloudWatch here

这篇关于带有维度的Amazon Web Service CloudWatch自定义指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆