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

Add new metrics #2434

Merged
merged 2 commits into from
Mar 19, 2025
Merged

Add new metrics #2434

merged 2 commits into from
Mar 19, 2025

Conversation

un-def
Copy link
Collaborator

@un-def un-def commented Mar 18, 2025

  • memory_total_bytes
  • gpu_memory_total_bytes
  • cpus_detected_num

* `memory_total_bytes`
* `gpu_memory_total_bytes`
* `cpus_detected_num`
@un-def un-def requested a review from r4victor March 18, 2025 15:38
@un-def un-def added the metrics label Mar 18, 2025
def _make_constant_metric(name: str, timestamps: list[datetime], value: float) -> Metric:
return Metric(
name=name,
timestamps=[timestamps[0], timestamps[-1]] if len(timestamps) > 1 else [timestamps[0]],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to document the format for constant metrics. Also unsure if it's worth having a special case for constant metrics at all to save some bytes. I'd return all the timestamps.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed the special case, constant metrics now use the same timestamps as regular metrics.

@un-def un-def merged commit e31b609 into master Mar 19, 2025
24 checks passed
@un-def un-def deleted the pr_new_metrics branch March 19, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants