IoT Cloudwatch Metrics for Dynamic Thing Groups

0

I want to be notified when the account reaches the limit for Dynamic Thing Groups.

Is there like a AWS metric that I could use to set alarm.

It could be a metric for:

  • When CreateDynamicThingGroup fails
  • DynamicThingGroup Count
  • DynamicThingGroup Limit exceeded

Is there something like that. I want to be notified after or before it fails.

Tank you.

1 個回答
1

Here is one approach:

There is an IoT Core Metric called "AddThingToDynamicThingGroupsFailed" which will likely allow you to achieve what you are attempting.

You could set up a CloudWatchAlarm to evaluate this metric for value change, then use that to trigger your logic. I haven't tested this, but here is the CLI format I would use (YMMV):

aws cloudwatch put-metric-alarm
--alarm-name "AddThingToDynamicThingGroupsFailedChangeAlarm"
--alarm-description "Alarm triggers on increase in number of failed additions to DynamicThingGroup"
--metric-name "AddThingToDynamicThingGroupsFailed"
--namespace "YourNamespace"
--statistic Average
--period 60
--threshold 0
--comparison-operator GreaterThanOrEqualToThreshold
--evaluation-periods 1
--datapoints-to-alarm 1
--treat-missing-data notBreaching

已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南