[monitoring] add vpa for vmagent - #772
Timofei Larkin (lllamnyp) merged 1 commit into
Conversation
Signed-off-by: kklinch0 <[email protected]>
3e0a96d to
8e2e77d
Compare
WalkthroughTwo configuration files have been modified. In the VMAgent YAML file, a new Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant API as Kubernetes API
participant Agent as VMAgent
participant VPA as VPA Controller
Dev->>API: Apply vmagent.yaml (with shardCount field)
Dev->>API: Apply vpa.yaml (with VPA configuration)
API->>Agent: Deploy VMAgent with updated configuration
API->>VPA: Register autoscaling rules for VMAgent
VPA->>Agent: Monitor resource metrics
Agent->>VPA: Report performance metrics
VPA->>API: Adjust scaling actions as needed
Poem
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:
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
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/system/monitoring-agents/templates/vmagent.yaml (1)
6-6: New Field Addition:shardCountAdded
The new fieldshardCount: 1is correctly added under thespecsection. Ensure that this parameter matches the intended scaling or sharding strategy for the VMAgent.packages/system/monitoring-agents/templates/vpa.yaml (1)
13-27: Resource Policy Value Verification
The resource policy section specifies minimum and maximum values for both theconfig-reloaderandvmagentcontainers. It is advisable to double-check that these values meet the workload requirements and do not lead to resource contention during scaling events.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/system/monitoring-agents/templates/vmagent.yaml(1 hunks)packages/system/monitoring-agents/templates/vpa.yaml(1 hunks)
🔇 Additional comments (2)
packages/system/monitoring-agents/templates/vmagent.yaml (1)
1-36: Overall YAML Configuration Consistency
The remainder of the YAML configuration is well-structured and consistent. Confirm that downstream components or scripts consuming this configuration are updated to handle the newshardCountfield if needed.🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 15-15: syntax error: could not find expected ':'
(syntax)
packages/system/monitoring-agents/templates/vpa.yaml (1)
1-28: Introduction of VPA Configuration
This new Vertical Pod Autoscaler (VPA) file is well-defined. ThetargetRefaccurately points to the VMAgent resource, and theupdatePolicyis set to automatic updates as intended.
Summary by CodeRabbit