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

[telemetry] define key telemetries and their extraction logic #1973

Merged
merged 28 commits into from
Sep 8, 2023

Conversation

morningboata
Copy link
Contributor

  • Telemetry definition is available in thread_telemetry.proto
  • Telemetry extraction logic is provided in thread_helper.cpp
  • DBus RPC service is served; thread_helper's Telemetry lib allows to support additional telemetry service integration if needed.

@morningboata morningboata requested review from bukepo and wgtdkp August 17, 2023 09:17
@morningboata morningboata requested review from superwhd and removed request for Irving-cl August 18, 2023 07:55
@wgtdkp
Copy link
Member

wgtdkp commented Aug 21, 2023

Is this change for Android?

@morningboata
Copy link
Contributor Author

morningboata commented Aug 21, 2023

This is for Android and other devices (like router) as well.

src/utils/thread_helper.cpp Outdated Show resolved Hide resolved
src/utils/thread_helper.cpp Outdated Show resolved Hide resolved
src/utils/thread_helper.cpp Outdated Show resolved Hide resolved
src/utils/thread_helper.cpp Outdated Show resolved Hide resolved
src/common/code_utils.hpp Outdated Show resolved Hide resolved
tests/dbus/test_dbus_client.cpp Show resolved Hide resolved
@openthread openthread deleted a comment from morningboata Aug 24, 2023
src/common/num_utils.cpp Outdated Show resolved Hide resolved
src/common/num_utils.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@superwhd superwhd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

NODE_TYPE_END = 2;
NODE_TYPE_SLEEPY_END = 3;
NODE_TYPE_MINIMAL_END = 4;
message Duration {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is borrowed from google.
I wonder whether we need it to be so precise. It probably acceptable to use uint32_t representing the duration in seconds.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about to keep this Duration format currently: 1. for age / timeout use case, only the seconds field is populated, so the wired payload size is optimized without the nano field. 2. compatible with the parsing proto logic in upper layer, and extensible if we need to have finer nano granularity in future.

src/common/code_utils.hpp Outdated Show resolved Hide resolved
Copy link
Member

@abtink abtink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. 👍

@morningboata morningboata requested a review from jwhui August 31, 2023 06:08
@jwhui jwhui changed the title Define key telemetries and their extraction logic for Thread [telemetry] define key telemetries and their extraction logic Sep 7, 2023
src/utils/thread_helper.cpp Outdated Show resolved Hide resolved
src/utils/thread_helper.hpp Show resolved Hide resolved
src/utils/thread_helper.hpp Outdated Show resolved Hide resolved
@jwhui jwhui merged commit b4d6f3b into openthread:main Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants