CloudWatch的报警,指定哪个维度值发射它维度、CloudWatch

2023-09-11 11:58:25 作者:落荒而逃的王

这可能是有点难以解释,但我会尝试:

This may be a little hard to explain, but I will try:

我们希望有一个度量其尺寸的报警,但报警识别它的射击维度的哪个值。我不知道这是可能的。

We'd like to have an alarm on a metric which has a dimension, but have the alarm identify which value of the dimension it's firing on. I don't know if this is possible.

作为例如,假设我们有CPU利用率指标,尺寸为实例ID,我们有3个值在这个维度:I-1,I-2,I-3。 (我contriving这一点,我没有特别想真正CloudWatch的指标)。

As a for example, say we have the CPUUtilization metric, the dimension is instance ID, and we have 3 values in this dimension: i-1, i-2, i-3. (I'm contriving this, I'm not specifically thinking of real cloudwatch metrics).

我希望能够做的就是定义一个报警,说:如果CPU的利用率在尺寸的任何一个值达到50%,火灾报警,并告诉我维度的价值。例如。如果我-2变为50%以上,警报会告诉我,这是我-2是超过阈值。

What I'd like to be able to do is define an alarm that says "if CPU utilization for any one value in the dimension goes over 50%, fire an alarm and tell me the dimension's value". E.g. if i-2 goes over 50%, the alarm would tell me that it was i-2 that exceeded the threshold.

我要求的太多?

(根本的挑战是,我宁愿没有改变报警作为资源添加和删除,我很乐意与报警射击只是为了告诉我的项目之一,已经超过了阈值,但最好我们OPS工作人员想报警,告诉他们到底是哪方面的价值已经超过了它,而不必到别处。)

(The underlying challenge is that I'd rather not have to change alarms as resources are added and removed; I'd be happy with the alarm firing just to tell me one of the items has exceeded the threshold, but ideally our ops staff would like the alarm to tell them exactly which dimension value has exceeded it, without having to look elsewhere.)

谢谢!

推荐答案

FWIW,从AWS职员在AWS论坛上回应了表示这是不可能的,但他们understnd为什么它可能是有用的。

fwiw, a response from an AWS staffer over in the AWS forums indicates it's not possible but they understnd why it might be useful.

https://forums.aws.amazon.com/message.jspa?邮件ID = 394466