Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nucleus Telemetry Agent: Configuration for QOS #1627

Open
2 tasks
cole-jxn opened this issue May 24, 2024 · 1 comment
Open
2 tasks

Nucleus Telemetry Agent: Configuration for QOS #1627

cole-jxn opened this issue May 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cole-jxn
Copy link

Feature Description
I noticed in the documentation for the Greengrass Nucleus Telemetry Agent that the QOS is set to 0. I have noticed my devices rarely send the aggregated daily telemetry data. To improve this, allowing the QOS to be set to 1 through the component configuration could help improve reliability.

I am referring to this link: https://docs.aws.amazon.com/greengrass/v2/developerguide/telemetry.html

The telemetry agent publishes data using the MQTT protocol with a quality of service (QoS) level of 0, which means that it doesn't confirm delivery or retry publishing attempts. Telemetry messages share an MQTT connection with other messages for subscriptions destined for AWS IoT Core.

Use Case
Why do you need this feature?
For my use case, daily aggregated data works fine, but using QOS = 0 makes it unreliable. I am currently using EventBridge to write the data to CloudWatch logs. I have 20 devices, but typically see updated logs every 5-6 days for a single device. I would expect to see all 20 devices publishing telemetry data every day.

Proposed Solution
Add a configuration field "QOS" to the nucleus component:

{
"telemetry": {
"enabled": true,
"QOS": 1,
"periodicAggregateMetricsIntervalSeconds": 3600,
"periodicPublishMetricsIntervalSeconds": 86400
}
}

Other
Add detailed explanation, stacktraces, related issues, links for us to have context, etc
https://docs.aws.amazon.com/greengrass/v2/developerguide/telemetry.html
https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration-telemetry

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@cole-jxn cole-jxn added the needs-triage Needs eyeballs label May 24, 2024
@jrcarbAWS jrcarbAWS added the enhancement New feature or request label May 28, 2024
@junfuchen99
Copy link
Member

Hello,

Thanks for reaching out. We will look adding an option that makes Telemetry QOS 1

@junfuchen99 junfuchen99 removed the needs-triage Needs eyeballs label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants