Skip to content
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

Add cgroup RSS queries #143

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

afcollins
Copy link
Contributor

Type of change

  • New feature

Description

Adding corresponding memory RSS queries for existing cgroup metrics.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

@afcollins afcollins requested review from a team as code owners November 8, 2024 17:49
- query: sum( (node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) and on (instance) label_replace(kube_node_role{role="worker"}, "instance", "$1", "node", "(.+)") )
metricName: memory-sum-workers
instant: true
captureStart: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding this metric because it allows us to calculate the memory delta over the run, with start and end instant measurements. This can help us detect memory leaks over the course of a run.

@afcollins afcollins force-pushed the metrics-cgroup-rss branch 2 times, most recently from cf973a8 to aaccc5d Compare November 12, 2024 22:11
@afcollins
Copy link
Contributor Author

Rebased on latest main to remove merge commit, added commit sign-off, and corrected the minor formatting differences between the files for the same queries so the diff is cleaner.

@afcollins
Copy link
Contributor Author

Removed a duplicate query.

It's all good now. PTAL

Signed-off-by: Andrew Collins <[email protected]>
@rsevilla87 rsevilla87 self-requested a review November 13, 2024 20:31
Copy link
Member

@rsevilla87 rsevilla87 left a comment

Choose a reason for hiding this comment

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

lgtm

@rsevilla87 rsevilla87 merged commit d0fbac8 into kube-burner:main Nov 13, 2024
4 checks passed
@afcollins afcollins deleted the metrics-cgroup-rss branch November 13, 2024 21:26
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.

2 participants