IoT Rule on Greengrass Core Device Health Status

0

I am trying to set up an IoT rule for when a Greengrass V2 core devices' health changes. Looking at the source code for GGV2, it shows that the device will publish to the topic $aws/things/{thingName}/greengrassv2/health/json to report health status. I've tried using that topic in the MQTT test client, but do not see any activity when I force my device to be unhealthy. Is there another way to hook in to that functionality, or any documentation of topics that are available to the test client or IoT rules?

已提問 2 年前檢視次數 565 次
2 個答案
0

Hi rchamberlin. The core device publishes both core device health (fleet status) and telemetry data on that topic. However that topic is not exposed on the broker so you can't subscribe to it. Furthermore, this information is only published every 24 hours (by default, and this is the minimum interval), not in response to events. Please see the fleetStatus and telemetry configuration parameters of the Greengrass Nucleus configuration for more information: https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration

For more frequent telemetry, you might consider the telemetry emitter component:

profile pictureAWS
專家
Greg_B
已回答 2 年前
0

Hi! Is this 24 hour minimum limit something you could consider changing? It would be very convenient to use the Health status in the dashboards to check whether a unit is ok or not! Now I sometimes find myself confused by it, for example when trying to deploy new code to a "Healthy" unit that isn't currently connected to AWS at all etc.

已回答 4 個月前

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

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

回答問題指南