- Newest
- Most votes
- Most comments
Thank you for providing details about your issue with AWS IoT Device Defender metrics. It seems you've taken the correct initial step by creating a security profile, but there are a few additional steps you need to take to see the cloud-side metrics for your devices.
-
Attach the security profile: After creating the security profile, you need to attach it to your devices or device groups. You can do this using the AttachSecurityProfile action or through the AWS IoT console. Without attaching the profile, AWS IoT Device Defender won't collect metrics for your devices.
-
Wait for data collection: After attaching the security profile, it may take some time (usually a few hours) for AWS IoT to collect and display the metrics. The metrics are not instantaneous and depend on device activity.
-
Verify device connectivity: Ensure that your devices are actually connecting to AWS IoT Core and performing actions like publishing or subscribing to topics. If devices aren't actively communicating, there may not be any metrics to display.
-
Check permissions: Make sure your IAM user or role has the necessary permissions to view the metrics in the AWS IoT console.
-
Confirm metric selection: When viewing metrics in the console, ensure you've selected the correct time range and metrics you want to view.
For the disconnect count and duration metrics specifically:
- The "aws:num-disconnects" metric should show the number of times a device disconnects from AWS IoT during a given time period.
- The "aws:disconnect-duration" metric is a newer feature that allows you to monitor the duration of device disconnections. This can help you track the active connection status of devices and receive alerts when devices are disconnected for longer than a specified duration.
If you've completed these steps and are still not seeing any data after 24-48 hours, it would be advisable to contact AWS support for further assistance, as there may be an account-specific issue or a problem with your device configurations.
Sources
How to use AWS IoT Device Defender detect - AWS IoT Device Defender
AWS IoT Device Defender now supports monitoring of device disconnect durations
Cloud-side metrics - AWS IoT Device Defender
It took just over 24 hours for the change to take effect, but the additional step to aws iot attach-security-profile resolved the issue.
Relevant content
- asked 6 years ago
