Skip to content

Conversation

@keivenchang
Copy link
Contributor

@keivenchang keivenchang commented Jul 28, 2025

Overview:

This PR adds a comprehensive metrics guide documenting Dynamo's hierarchical Prometheus metrics system, including the MetricsRegistry trait, automatic labeling, and base metrics.

Details:

  • Created docs/guides/metrics.md: Complete guide covering architecture, usage examples, and best practices
  • Updated deploy/metrics/README.md: Added cross-reference to the new guide
  • Documented: Base metrics, automatic labeling, metric name validation, troubleshooting, and monitoring setup

Where should the reviewer start?

docs/guides/metrics.md: Review the overall structure and completenes

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

DYN-779: Create a new guide on using the MetricsRegistry APIs

Summary by CodeRabbit

  • Documentation
    • Added a note in the README directing users to a separate Metrics Guide for detailed information about Dynamo's metrics system, including topics like hierarchical metrics, automatic labeling, and usage examples.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jul 28, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

Walkthrough

A note was added to the beginning of the deploy/metrics/README.md file, directing readers to a separate Metrics Guide for more detailed information about Dynamo's metrics system. No other content or instructions were changed.

Changes

Cohort / File(s) Change Summary
README Note Addition
deploy/metrics/README.md
Added a note at the top referencing a separate Metrics Guide for detailed information on metrics topics.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A note now hops in, clear and bright,
Guiding readers to metrics insight.
For details and guides, just follow the trail,
To the Metrics Guide, without fail!
📝🐇

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
deploy/metrics/README.md (1)

5-7: Adopt repository-wide admonition syntax for consistency

Other Markdown guides in this repo appear to use the common !!! note / indented-block style (rendered by MkDocs & most Markdown processors with the admonition plugin).
The current [!NOTE] blockquote renders as plain text on GitHub and breaks the visual consistency of the docs set.

-> [!NOTE]
-> For detailed information about Dynamo's metrics system, including hierarchical metrics, automatic labeling, and usage examples, see the [Metrics Guide](../../docs/guides/metrics.md).
+!!! note
+    For detailed information about Dynamo's metrics system—including hierarchical metrics, automatic labeling, and usage examples—see the [Metrics Guide](../../docs/guides/metrics.md).
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fdcf611 and 1a58512.

📒 Files selected for processing (1)
  • deploy/metrics/README.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build and Test - vllm
  • GitHub Check: Build and Test - vllm

@keivenchang keivenchang force-pushed the keivenchang/create-a-new-guide-on-using-the-metricsregistry-apis__DYN-779 branch from 1a58512 to 87bb602 Compare July 29, 2025 01:08
Copy link
Contributor

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

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

Left a couple questions - but great foundation for the metrics docs!

Copy link
Contributor

@nnshah1 nnshah1 left a comment

Choose a reason for hiding this comment

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

very nice. I think we should think about the best places for "Overview" -> which I think this does a great job. Then developer guide - likely a new doc. then dasbhoard guide - which I think is what the deploy/readme.md should be.

Finally - the metrics returned by a component - we should reference the component documentation. Each component should document their metrics there - to avoid having to blow this one up.

If that makes sense - we can add follow up tickets

@keivenchang keivenchang force-pushed the keivenchang/create-a-new-guide-on-using-the-metricsregistry-apis__DYN-779 branch from 76e6064 to b8a4a1d Compare August 1, 2025 04:41
@keivenchang keivenchang merged commit faafa5f into main Aug 1, 2025
9 checks passed
@keivenchang keivenchang deleted the keivenchang/create-a-new-guide-on-using-the-metricsregistry-apis__DYN-779 branch August 1, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants