-
Notifications
You must be signed in to change notification settings - Fork 690
fix: update regex for namespace query in Grafana dashboard #3002
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
Conversation
Signed-off-by: mohammedabdulwahhab <furkhan324@berkeley.edu>
Signed-off-by: mohammedabdulwahhab <furkhan324@berkeley.edu>
WalkthroughGrafana dashboard configurations were updated to change the Namespace templating variable regex from an empty string to ".+", enforcing non-empty namespace selections. No other fields or public interfaces were modified. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks (2 passed, 1 warning)❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Poem
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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. 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.
Actionable comments posted: 0
🧹 Nitpick comments (4)
deploy/logging/grafana/dashboard.json (2)
109-114: Prevent “All” from matching empty by setting an explicit allValue.When “All” is selected, Grafana typically expands to
.*, which still matches empty. To keep behavior consistent with your intent, setallValueto".+".Apply within the namespace variable block:
"refresh": 1, - "regex": ".+", + "regex": ".+", + "allValue": ".+", "skipUrlSync": false,
109-114: Avoid drift between JSON and YAML dashboard sources.Since this dashboard exists in both raw JSON and a YAML-embedded JSON, consider generating one from the other via your build/ops tooling to keep them in lockstep.
deploy/logging/grafana/logging-dashboard.yaml (2)
119-125: SetallValueto".+"to align “All” with non-empty constraint.Without this, “All” may expand to
.*and include empty matches.Patch inside the
namespacevariable block:"refresh": 1, - "regex": ".+", + "regex": ".+", + "allValue": ".+", "skipUrlSync": false,
1-221: Keep the JSON and ConfigMap-embedded JSON in sync automatically.Recommend a single source of truth (e.g., maintain JSON only and template it into the ConfigMap at deploy time) to avoid inconsistencies.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
deploy/logging/grafana/dashboard.json(1 hunks)deploy/logging/grafana/logging-dashboard.yaml(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). (3)
- GitHub Check: Build and Test - dynamo
- GitHub Check: Build and Test - sglang
- GitHub Check: Build and Test - vllm
🔇 Additional comments (2)
deploy/logging/grafana/dashboard.json (1)
109-114: LGTM: Non-empty namespace enforced in variable options.Using
".+"filters out emptynamespacelabel values from the picker. Matches PR intent.deploy/logging/grafana/logging-dashboard.yaml (1)
119-125: LGTM: Mirrors JSON change to exclude empty namespaces.
"regex": ".+"on thenamespacevariable is correct here as well.
Signed-off-by: mohammedabdulwahhab <furkhan324@berkeley.edu>
Signed-off-by: mohammedabdulwahhab <furkhan324@berkeley.edu> Signed-off-by: ayushag <ayushag@nvidia.com>
Signed-off-by: mohammedabdulwahhab <furkhan324@berkeley.edu> Signed-off-by: zhongdaor <zhongdaor@nvidia.com>
Signed-off-by: mohammedabdulwahhab <furkhan324@berkeley.edu> Signed-off-by: Biswa Panda <biswa.panda@gmail.com>
Overview:
Update loki query so it can't default to all empty values
Summary by CodeRabbit
New Features
Bug Fixes
Chores