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?

gefragt vor 2 Jahren565 Aufrufe
2 Antworten
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
EXPERTE
Greg_B
beantwortet vor 2 Jahren
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.

beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen