简体   繁体   English

如何禁用 AWS Cloudwatch 指标

[英]How to disable AWS Cloudwatch metrics

I'm new and am trying to work with AWS.我是新手,正在尝试与 AWS 合作。 I develop small lambda functions and have created some dynamodb tables.我开发了小型 lambda 函数并创建了一些 dynamodb 表。 I don't expect there to be any costs, because I should be in the free-tier, but since last month I am seeing costs for "Cloud Watch Alarms" .我不希望有任何费用,因为我应该在免费层,但自上个月以来,我看到了"Cloud Watch Alarms" 的费用。 Not high costs, but I got billed $0.53.成本不高,但我收到了 0.53 美元的账单。 Why I am getting this bill even though I am using AWS free tier.为什么我在使用 AWS 免费套餐时仍收到此账单。

Billing info:计费信息:

$0.00 per alarm-month - first 10 alarms 10 Alarms $0.00每个警报月 0.00 美元 - 前 10 个警报 10 个警报 0.00 美元
$0.10 per alarm-month 4.277 Alarms 0.43$每个警报月 0.10 美元 4.277 警报 0.43 美元

I don't want these cloudwatch metrics right now.我现在不想要这些 cloudwatch 指标。 I only want to store log files.我只想存储日志文件。 How can I to disable these cloudwatch metrics.如何禁用这些 cloudwatch 指标。

在此处输入图片说明

Thanks,谢谢,

You have configured, maybe unintentionally, a Cloud Watch Alarm.您可能无意中配置了 Cloud Watch 警报。

Fortunately it's quite easy to remove it.幸运的是,删除它很容易。

Go to your AWS Dashboard and select Cloud Watch:转到您的 AWS 仪表板并选择 Cloud Watch:

在此处输入图片说明

On the left-hand side, click on Alarms.在左侧,单击警报。 Select the Alarm which you want to remove and delete it.选择要删除的警报并将其删除。

在此处输入图片说明

好吧,您可以通过 SCP 来执行此操作,以制定通用策略来拒绝此类 api

This is what I got from AWS Support:这是我从 AWS Support 得到的:

CloudWatch collects and processes raw data from DynamoDB into readable, near real-time metrics. CloudWatch 从 DynamoDB 收集原始数据并将其处理为可读的、近乎实时的指标。 These statistics are recorded for a period of two weeks, so that you can access historical information for a better perspective on how your web application or service is performing.这些统计数据会记录两周,以便您可以访问历史信息以更好地了解您的 Web 应用程序或服务的执行情况。 By default, DynamoDB metric data is sent to CloudWatch automatically.默认情况下,DynamoDB 指标数据会自动发送到 CloudWatch。

When you interact with DynamoDB, it sends the following metrics and dimensions to CloudWatch.当您与 DynamoDB 交互时,它会将以下指标和维度发送到 CloudWatch。 Note that Amazon CloudWatch aggregates the following DynamoDB metrics at one-minute intervals:请注意,Amazon CloudWatch 每隔一分钟汇总以下 DynamoDB 指标:

> ConditionalCheckFailedRequests
> ConsumedReadCapacityUnits
> ConsumedWriteCapacityUnits
> ReadThrottleEvents
> ReturnedBytes
> ReturnedItemCount
> ReturnedRecordsCount
> SuccessfulRequestLatency
> SystemErrors
> TimeToLiveDeletedItemCount
> ThrottledRequests
> TransactionConflict
> UserErrors
> WriteThrottleEvents

I'm trying to find out if there is a way to turn this off and will update my answer when I get it我试图找出是否有办法关闭它,并在我得到答案时更新我的​​答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM