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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인