Repository navigation
feat(helm) add monitoring conf as a sub chart - #860
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the monitoring capabilities of the production stack by transitioning from a script-based deployment to a fully integrated Helm sub-chart approach. This change allows users greater flexibility in managing their monitoring infrastructure, whether by deploying a complete Prometheus stack or integrating with an existing one, while also providing out-of-the-box Grafana dashboards for key vLLM metrics. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly improves the monitoring setup by migrating from installation scripts to Helm sub-charts for kube-prometheus-stack and prometheus-adapter. This change makes the monitoring configuration more flexible, declarative, and aligned with Helm best practices. The dynamic creation of Grafana dashboard ConfigMaps is also a welcome addition. While the overall direction is excellent, I've identified a critical issue with the Prometheus URL configuration that will likely cause connection failures. I've also suggested changing the default behavior to make the monitoring stack opt-in rather than opt-out, and pointed out a documentation TODO that needs to be addressed. Additionally, please note that observability/README.md is now outdated and should be updated or removed to avoid confusion.
c176cf5 to
3c8a184
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refactors the monitoring setup by replacing the script-based installation with Helm sub-charts for Prometheus and Grafana. This is a significant improvement in terms of flexibility and maintainability. The changes include adding kube-prometheus-stack and prometheus-adapter as dependencies, creating ServiceMonitor resources for the engine and router, and managing Grafana dashboards as ConfigMaps. Overall, the changes are well-structured. I've found one critical issue regarding YAML indentation in a new template file that needs to be addressed.
3c8a184 to
87a486b
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refactors the monitoring configuration by adding kube-prometheus-stack and prometheus-adapter as conditional sub-chart dependencies, which improves flexibility. The changes include adding ServiceMonitor resources for the serving engine and router, and a mechanism to deploy Grafana dashboards from JSON files. The old script-based monitoring installation is correctly removed. The configuration for these new features is exposed in values.yaml and documented in the README.md. I have a couple of suggestions to improve the robustness of the new templates and fix an issue in a generated file.
223a1cf to
29106fa
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request significantly improves the monitoring setup by refactoring it from a script-based installation to a more flexible and idiomatic Helm subchart approach. The changes include adding kube-prometheus-stack and prometheus-adapter as dependencies, introducing ServiceMonitor resources for both the serving engine and the router, and providing Grafana dashboards as config maps. The documentation and examples have been updated accordingly.
My review found a minor issue in the documentation that could be improved for clarity. Overall, this is a great enhancement that makes the monitoring configuration much more customizable and easier to manage for users.
bdbe033 to
eafc646
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request is a significant improvement, refactoring the monitoring setup to be a flexible and integrated part of the Helm chart. By adding kube-prometheus-stack and prometheus-adapter as sub-charts and providing ServiceMonitor resources, it moves away from manual scripts and offers a much cleaner, more maintainable solution. The documentation updates are thorough and clear. I've identified a couple of minor areas for improvement in the ServiceMonitor selectors to make them more specific, but overall this is excellent work.
ruizhang0101
left a comment
There was a problem hiding this comment.
Hi, Thanks for the PR! This is really solid and useful one. Could you confirm the observability/dashboard is still working under this method?
Meanwhile, I have made some concern and suggestions, please lemme know if you have any questions.
|
@brokedba Hi, Could you also take a look at this PR since it changes the deployment in aks/gke? |
|
I checked the PR scope and this doesn't impact the deployments I pushed to the project, as I didn't contribute the AKS/GKE tutorials, so I can't speak to their implementation. The chart-based approach is welcome , as long as the prometheus/monitoring block defaults to disabled as some teams already have their own opinionated observability deployed in the cluster. For reference, here's how I managed the monitoring part when Prometheus/grafana was not yet handled by the helm chart: |
It is the case. set |
a24d607 to
b48a04c
Compare
e401103 to
d9fd61e
Compare
|
Hey @ruizhang0101 Ci is green, this is ready for another review ! |
ruizhang0101
left a comment
There was a problem hiding this comment.
LGTM :))) Thanks for the contribution!
|
Hi, could you fix the DCO issue, it should be related to some of the commit are not signed. |
8e9eee3 to
b9a92ef
Compare
|
Hey, done :) |
Signed-off-by: enneitex <[email protected]>
b9a92ef to
3565def
Compare
Signed-off-by: enneitex <[email protected]> Co-authored-by: Rui Zhang <[email protected]>
|
thanks for your help and your time reviewing this PR @ruizhang0101 ! |
Signed-off-by: enneitex <[email protected]> Co-authored-by: Rui Zhang <[email protected]> Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
…chart (#965) * docs: update KEDA autoscaling guide to use integrated monitoring sub-chart Since v0.1.11 (PR #860), monitoring (kube-prometheus-stack, prometheus-adapter) is available as an optional sub-chart dependency. The separate observability install script is no longer needed. Changes: - Replace 'cd observability && bash install.sh' with values.yaml configuration - Update Prometheus service addresses to match sub-chart naming - Add note about using existing external Prometheus stacks - Update version requirement to v0.1.11+ - Update cleanup section to reflect new approach Signed-off-by: Ahmad Salah <[email protected]> * docs: address review feedback on KEDA tutorial - Remove premature verification block from Step 1 (Prometheus is not deployed until helm install in Step 2) - Replace <release-name> placeholder with 'vllm' for copy-paste-able examples - Remove prometheus-adapter from examples (not required for KEDA, which queries Prometheus directly via its built-in scaler) - Add note explaining when prometheus-adapter is actually needed Signed-off-by: Ahmad Salah <[email protected]> --------- Signed-off-by: Ahmad Salah <[email protected]> Co-authored-by: Rui Zhang <[email protected]>
…ction The LMCache dashboard's six fields were documented in the old observability/README.md, which is now deprecated and points readers to helm/README.md#observability for this content. That content never made it over during the helm chart monitoring refactor (vllm-project#860), even though the dashboard itself is still shipped and auto-provisioned via helm/templates/dashboards.yaml. Signed-off-by: Sam <[email protected]>
…ction (#982) The LMCache dashboard's six fields were documented in the old observability/README.md, which is now deprecated and points readers to helm/README.md#observability for this content. That content never made it over during the helm chart monitoring refactor (#860), even though the dashboard itself is still shipped and auto-provisioned via helm/templates/dashboards.yaml. Signed-off-by: Sam <[email protected]> Co-authored-by: Rui Zhang <[email protected]>
Contributes to #840
The goal of this PR is to be more flexible about the monitring part of this chart. Currently there is no way to use an existing prometheus stack.
By adding a few resources in the chart and prometheus as a sub-chart, it allows user to fully customize their installation, from only a
serviceMonitorto a whole prometheus stackTechnical changes:
serviceMonitordirectly to the helm chart.Step to validate the PR:
get the admin password for grafana, stored in a secret
<release-name>-grafanaPort foward grafana UI and login:
kubectl port-forward svc/<release-name>-grafana 8080:80. Two vLLM dashboards should be present, with data if there are request made to the modelshelm install llmstack . -f observability.yaml kubectl get secret llmstack-grafana -oyaml kubectl port-forward service/llmstack-grafana 8080:80-swhen doinggit commit[Bugfix],[Feat], and[CI].Detailed Checklist (Click to Expand)
Thank you for your contribution to production-stack! Before submitting the pull request, please ensure the PR meets the following criteria. This helps us maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Please try to classify PRs for easy understanding of the type of changes. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:
[Bugfix]for bug fixes.[CI/Build]for build or continuous integration improvements.[Doc]for documentation fixes and improvements.[Feat]for new features in the cluster (e.g., autoscaling, disaggregated prefill, etc.).[Router]for changes to thevllm_router(e.g., routing algorithm, router observability, etc.).[Misc]for PRs that do not fit the above categories. Please use this sparingly.Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:
pre-committo format your code. SeeREADME.mdfor installation.DCO and Signed-off-by
When contributing changes to this project, you must agree to the DCO. Commits must include a
Signed-off-by:header which certifies agreement with the terms of the DCO.Using
-swithgit commitwill automatically add this header.What to Expect for the Reviews
We aim to address all PRs in a timely manner. If no one reviews your PR within 5 days, please @-mention one of YuhanLiu11
, Shaoting-Feng or ApostaC.