Skip to content

fix(base-cluster/monitoring): increase limit of grafana sidecar#1878

Merged
marvinWolff merged 1 commit intomainfrom
fix/base-cluster/set_grafana_sidecar_limit
Dec 9, 2025
Merged

fix(base-cluster/monitoring): increase limit of grafana sidecar#1878
marvinWolff merged 1 commit intomainfrom
fix/base-cluster/set_grafana_sidecar_limit

Conversation

@marvinWolff
Copy link
Collaborator

@marvinWolff marvinWolff commented Dec 9, 2025

Summary by CodeRabbit

  • Chores
    • Set memory resource limit (256Mi) for monitoring sidecar to improve resource management and system stability.

✏️ Tip: You can customize this high-level summary in your review settings.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marvinWolff, 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 addresses a potential resource constraint for the Grafana sidecar by explicitly setting a memory limit within the base-cluster monitoring configuration. This change aims to improve the stability and reliability of the monitoring component by ensuring it has adequate resources.

Highlights

  • Grafana Sidecar Memory Limit: Increased the memory limit for the Grafana sidecar within the base-cluster monitoring configuration to "256Mi" to ensure stable operation.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link

coderabbitai bot commented Dec 9, 2025

Walkthrough

A memory limit of 256Mi was added to the monitoring sidecar resource configuration in the base cluster values file. This is a configuration-only update that establishes resource constraints for the monitoring sidecar container without modifying any other settings.

Changes

Cohort / File(s) Summary
Monitoring Sidecar Resource Configuration
charts/base-cluster/values.yaml
Added memory limit of 256Mi to monitoring.sidecar.resources; previously the resources object was empty.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single configuration field update with no logic changes
  • No cross-file dependencies or side effects to verify
  • Standard Kubernetes resource configuration pattern

Suggested reviewers

  • tasches
  • teutonet-bot

Poem

🐰 A sidecar so lean, now constrained to a dream,
Two-fifty-six megabytes, a memory stream,
No more shall it wander unbounded and free,
A resource-aware hop, as it ought to be! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: increasing a memory limit for the Grafana sidecar monitoring component, which aligns with the changeset that adds a 256Mi memory limit.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/base-cluster/set_grafana_sidecar_limit

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request increases the memory limit for the Grafana sidecar to 256Mi, likely to address out-of-memory issues. The change is straightforward. I have added one suggestion to also explicitly define a memory request for improved clarity and consistency with the project's configuration standards.

Copy link

@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)
charts/base-cluster/values.yaml (1)

245-249: Consider adding CPU limits alongside memory for consistency.

The change adds a memory limit to the grafana sidecar, which addresses the stated objective. However, reviewing similar configurations in this file (e.g., oauthProxy at lines 214–220, nodeExporter at lines 293–300), components with explicit resource limits typically define both memory and CPU constraints. The sidecar is now memory-constrained but lacks CPU constraints, which could be inconsistent with the resource management patterns established elsewhere.

Verify whether:

  1. The 256Mi memory limit is adequate for the grafana sidecar workload
  2. CPU limits or requests should be added for resource consistency and to prevent unbounded CPU consumption
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f345cea and d81435f.

📒 Files selected for processing (1)
  • charts/base-cluster/values.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). (2)
  • GitHub Check: lint helm chart (base-cluster)
  • GitHub Check: check licenses

@marvinWolff marvinWolff added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit fb1ebc6 Dec 9, 2025
32 of 33 checks passed
@marvinWolff marvinWolff deleted the fix/base-cluster/set_grafana_sidecar_limit branch December 9, 2025 15:59
github-merge-queue bot pushed a commit that referenced this pull request Dec 11, 2025
🤖 I have created a release *beep* *boop*
---


##
[11.0.0](base-cluster-v10.1.2...base-cluster-v11.0.0)
(2025-12-10)


### ⚠ BREAKING CHANGES

* **base-cluster/monitoring:** grafana-tempo-distributed would need s3
([#1875](#1875))

### Features

* **base-cluster/flux:** use centralised helmRepositories template
([#1845](#1845))
([60658ed](60658ed))


### Bug Fixes

* **base-cluster/monitoring:** grafana-tempo-distributed would need s3
([#1875](#1875))
([df5c372](df5c372))
* **base-cluster/monitoring:** increase limit of grafana sidecar
([#1878](#1878))
([fb1ebc6](fb1ebc6))
* **base-cluster:** correctly set image repository
([#1848](#1848))
([0e108dc](0e108dc))


### Miscellaneous Chores

* **base-cluster/dependencies:** update common docker tag to v1.7.0
([#1872](#1872))
([b50ea98](b50ea98))
* **base-cluster/dependencies:** update helm release reflector to
v9.1.44
([#1861](#1861))
([2cfe4e5](2cfe4e5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Breaking Changes**
  * grafana-tempo-distributed now requires S3 configuration

* **New Features**
  * Centralized helmRepositories template management

* **Bug Fixes**
  * Increased Grafana sidecar limit
  * Corrected image repository reference

* **Chores**
  * Updated dependencies and component versions

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants