English 中文(简体)
创建云层测量仪,以监测现有州的数量
原标题:Create CloudWatch Metrics to monitor Volume in Available state

我试图设定一个衡量标准,以了解所有欧洲统计局的现有数据。 我不想为此打上花板/花板,因为这样我才不可能为图象制造警报。

直到现在,我一直设法创立一个Lambda的职能,负责描述所有欧洲统计局的卷量,并向一个记录小组发送有关该卷国家的信息。 之后,我利用“Log Insights”和“I query”过滤和计算“Available”的标识。 这样做了,但我要知道,是否还有其他办法这样做。

This is the Query I used in the Logs Insights:

parse @message "Volume ID: *, Volume State: " as volumeId, volumeState | filter volumeState == "available" | stats count() as availableVolumes by bin(5m)

我的拉布达职能向后勤组派出的一个实例是:

  • Volume ID: vol-xxxxxx, Volume State: in-use
  • Volume ID: vol-xxxxxa, Volume State: Available
问题回答

Would adding a trigger and in the trigger configuration add an eventbridge, and create a rule based on an event type for your lambda function work for what you re to accomplish? I hope this might also help: AWS:Lambda: Add SNS trigger programmatically https://docs.aws.amazon.com/lambda/latest/dg/with-sns-example.html





相关问题
How to scale MongoDB?

I know that MongoDB can scale vertically. What about if I am running out of disk? I am currently using EC2 with EBS. As you know, I have to assign EBS for a fixed size. What if the MongoDB growth ...

Should I persist images on EBS or S3?

I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql data. In my web application people may upload images. So I should persist them. There are ...

Amazon EC2 - Swap root instance store device with EBS device

I have an EC2 instance with "instance store" device as a root device. Now, I would like to attach an EBS volume to that same instance, only that I want it to be the root device. Is that possible? What ...

Homemade cheap and cheerful clustering with MySQL+EC2?

I ve got a Java web service backed by MySQL + EC2 + EBS. For data integrity I ve looked into DRBD, MySQL cluster etc. but wonder if there isn t a simpler solution. I don t need high availability (can ...

热门标签