Export Kubernetes cluster metrics to a remote monitoring host#223
Merged
mattkjames7 merged 10 commits intomainfrom Apr 22, 2026
Merged
Export Kubernetes cluster metrics to a remote monitoring host#223mattkjames7 merged 10 commits intomainfrom
mattkjames7 merged 10 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds optional Kubernetes infrastructure metrics scraping to the vmagentRemote component in both Memgraph Helm charts, allowing forwarding of kube-state-metrics, node-exporter, and kubelet metrics to a remote_write backend alongside Memgraph exporter metrics.
Changes:
- Introduces
vmagentRemote.kubernetes.*values and appends optional Kubernetes scrape jobs to vmagent config. - Adds conditional RBAC (ServiceAccount/ClusterRole/ClusterRoleBinding) and conditional
serviceAccountNameusage when Kubernetes scraping is enabled. - Updates documentation and provides runnable example values for standalone and HA deployments.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/remote-monitoring/values-standalone-k8s-metrics.yaml | Adds an example enabling remote_write plus Kubernetes scrape jobs (standalone). |
| examples/remote-monitoring/values-ha-k8s-metrics.yaml | Adds an example enabling remote_write plus Kubernetes scrape jobs (HA). |
| charts/memgraph/values.yaml | Adds vmagentRemote.kubernetes configuration defaults/options for standalone chart. |
| charts/memgraph/templates/vmagent.yaml | Appends Kubernetes scrape jobs, validations, and conditional RBAC/SA wiring for standalone chart. |
| charts/memgraph-high-availability/values.yaml | Adds vmagentRemote.kubernetes configuration defaults/options for HA chart. |
| charts/memgraph-high-availability/templates/vmagent.yaml | Appends Kubernetes scrape jobs, validations, and conditional RBAC/SA wiring for HA chart. |
| README.md | Documents how to enable Kubernetes infrastructure scraping with vmagentRemote and links examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
antejavor
requested changes
Apr 17, 2026
as51340
requested changes
Apr 17, 2026
11 tasks
as51340
approved these changes
Apr 21, 2026
Collaborator
|
Merge after fixing CI |
antejavor
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch extends remote monitoring for both
memgraphandmemgraph-high-availabilitycharts by adding optional Kubernetes cluster metrics scraping tovmagentRemote.What’s added
vmagentRemote.kubernetessupport in both vmagent templates:kube-state-metrics,node-exporter, andkubeletserviceAccountNameusage when Kubernetes scraping is enabled.charts/memgraph/values.yamlcharts/memgraph-high-availability/values.yamlREADME.mdwith configuration guidance.examples/remote-monitoring/values-standalone-k8s-metrics.yamlexamples/remote-monitoring/values-ha-k8s-metrics.yamlImpact
vmagentRemote.kubernetes.enabled=true.