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?

feita há 2 anos565 visualizações
2 Respostas
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
ESPECIALISTA
Greg_B
respondido há 2 anos
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.

respondido há 4 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas