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

[FIX] change schema name to aggregate data #1188

Closed
wants to merge 1 commit into from
Closed

[FIX] change schema name to aggregate data #1188

wants to merge 1 commit into from

Conversation

VanshIntel
Copy link
Contributor

gpu_metrics_sampler

@tom95858
Copy link
Collaborator

tom95858 commented May 4, 2023

@morrone Did you review this and find it OK?

@morrone
Copy link
Collaborator

morrone commented May 4, 2023

@morrone Did you review this and find it OK?

It doesn't have my name on it anymore, and looks like a stand-alone commit. That is good. But the commit message doesn't really meet the minimal bar for acceptance.

I don't have any comment on the actual code change.

Copy link
Collaborator

@tom95858 tom95858 left a comment

Choose a reason for hiding this comment

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

The commit message does not reflect what is actually being done here. Could you please fixup the metric names are requested and rewrite the commit message?

@@ -81,7 +81,7 @@ const metric_t metricsDefinitions[] = {
{.name = "perf_level", .type = LDMS_V_D64, .pf = (funcPtr_t) getPerfLevel},
{.name = "power_usage (mW)", .type = LDMS_V_S32, .pf = (funcPtr_t) getPowerUsage},
// {.name = "power_cap (mW)", .type = LDMS_V_S32, .pf = (funcPtr_t) getPowerCap}, // no longer supported
{.name = "gpu_temp (Celsius)", .type = LDMS_V_D64, .pf = (funcPtr_t) getGpuTemp},
{.name = "gpu_temp (Celsius)", .type = LDMS_V_D64, .pf = (funcPtr_t) getGpuTemp}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@VanshIntel It is not good practice to put the units in the metric name. There is a separate field for that. It is also not good practice to put (, #, etc... in the metric name because this makes subsequent analysis with Python and other tools more difficult as these are special characters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tom95858 I removed the Unit from metric name, Please let me know if any other changes require.

@VanshIntel VanshIntel requested a review from tom95858 May 8, 2023 19:03
@@ -81,7 +81,7 @@ const metric_t metricsDefinitions[] = {
{.name = "perf_level", .type = LDMS_V_D64, .pf = (funcPtr_t) getPerfLevel},
{.name = "power_usage (mW)", .type = LDMS_V_S32, .pf = (funcPtr_t) getPowerUsage},
Copy link
Collaborator

Choose a reason for hiding this comment

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

@VanshIntel it looks like almost all of these metric names have the unit string in them. What I'm asking is that you please:

  • remove the '(<unit-name>)' from all of the metric names
  • add the unit string you remove to an entry called .unit="". Don't include the '()' in that string

For example,

   . . .
  {.name = "power_usage", .unit="mW", .type = LDMS_V_S32, .pf = (funcPtr_t)getPowerUsage},
  {.name = "gpu_temp", .unit="Celsius", .type = LDMS_V_D64, .pf = (funcPtr_t) getGpuTemp},
   . . .

The other change I'm asking that you make is to change the commit message to something like:

"Modify the schema name and add the set metric unit names"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tom95858 Thanks for the pointing the issue, I've made the changes accordingly. Please let me know if there is any other changes require.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks @VanshIntel. Could you please change the commit message to something like:

Refactor schema and metric names.

The schema name is changed to "gpumetrics"

The metric names have been refactored to move the unit
string from the metric name to the .unit field of the schema
metric data structure.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@VanshIntel also please squash all of this into a single commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tom95858 I've merge all the changes into single commit. Please let me know if it require any changes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@VanshIntel yes you have, however the commit message could be better, e.g.

Refactor schema and metric names
removing the unit

removing the unit

[FIX] - Schema name and unit names correction

All I'm asking is that you fix the commit message to

Refactor schema and metric names

and remove the extra stuff. I

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tom95858 Sorry for the confusion. I've just updated the comment. Please let me know if there is any changes require. Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tom95858 I've pushed the changes. Please let me know if you require any changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tom95858 Can you please approve this merge or Please let me know if any changes require.

@VanshIntel VanshIntel requested a review from tom95858 May 25, 2023 17:13
@VanshIntel
Copy link
Contributor Author

@tom95858 Can you please review this merge or Please let me know if any changes require.

@VanshIntel VanshIntel closed this Jun 21, 2023
@VanshIntel VanshIntel reopened this Jun 21, 2023
Refactor schema and metric names

correcting metric names

change schema name
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.

4 participants