本文介绍了AWS Cloud监视警报,使用多个指标触发自动缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个云监视警报,该警报将基于多个指标数据触发自动缩放。由于Cloud Watch本身不支持此功能(如果我错了,请纠正我)。我想知道如何克服这个问题。

I want to create a cloud watch alarm which triggers autoscaling based on more than one metric data. Since this is not natively supported by Cloud Watch ( Correct me if i am wrong ). I was wondering how to overcome this.

我们能否从不同的指标(例如CPUUtilization,NetworkIn,NetworkOut)获取数据,然后使用mon-put-data创建自定义指标并输入这些数据以创建基于其触发自动缩放的新指标?

Can we get the data from different metrics, say CPUUtilization, NetworkIn, NetworkOut and then create a custom metrics using mon-put-data and enter these data to create a new metric based on which to trigger an autoscaling ?

推荐答案

是。。Cloudwatch警报只能触发在单个Cloudwatch指标上,因此您需要发布自己的汇总自定义指标,并根据自己的建议对其进行警报。

Yes .. Cloudwatch Alarms can only trigger on a single Cloudwatch Metric so you would need to publish your own 'aggregate' custom metric and alarm on that as you suggest yourself.

此处是描述使用自定义的博客文章触发自动缩放的指标。

Here is a blog post describing using custom metrics to trigger autoscaling.

这篇关于AWS Cloud监视警报,使用多个指标触发自动缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 08:04