-
Notifications
You must be signed in to change notification settings - Fork 693
fix: dynamo_component to be added in metric names #2180
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: dynamo_component to be added in metric names #2180
Conversation
WalkthroughThe changes standardize metric naming and labeling conventions throughout the documentation, implementation, and tests. All metrics now use a "dynamo_" prefix for both names and labels to avoid conflicts with Kubernetes and other systems. Related documentation, code, and tests were updated to reflect this unified scheme, with minor improvements to test syntax and comments. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (2)📓 Common learningslib/runtime/src/http_server.rs (1)Learnt from: ryanolson ⏰ 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). (4)
🔇 Additional comments (13)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
Documentation and Community
|
rmccorm4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
nnshah1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - we can address documentation in the guide PR
keivenchang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New PR coming up
a8d2018 to
20bb59b
Compare
7abaa92 to
36a7e0b
Compare
Overview:
Standardizes metric naming convention by adding
dynamo_component_prefix to all metric names and updating labels to usedynamo_prefixed versions to avoid Kubernetes collisions.Details:
dynamo_component_prefix (e.g.,dynamo_component_uptime_seconds)namespace,component,endpointtodynamo_namespace,dynamo_component,dynamo_endpointto avoid Kubernetes label collisionsbuild_metric_namefunction to always usedynamo_component_prefixWhere should the reviewer start?
lib/runtime/src/metrics.rs- Core metric naming logic and label handlinglib/runtime/src/http_server.rs- HTTP server metric test updateslib/runtime/examples/system_metrics/README.md- Documentation updates and terminology changesRelated Issues:
Relates to DIS-339
Summary by CodeRabbit
Documentation
Refactor
Bug Fixes