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

Create a config file that allows enabling and disabling certain collectors in the cgroup tree #1

Open
arianvp opened this issue Sep 3, 2024 · 0 comments

Comments

@arianvp
Copy link
Owner

arianvp commented Sep 3, 2024

enabling all collectors is quite a bit of data. Just on my desktop machine it's 10.000 individual metrics. Would
be cool if we can opt in and out of metrics in a config file. Thinking of something like this:

Note that collectors are inherited through the hierarchy. Need to be disabled with ~<collector name>

collectors:  [memory.pressure]  # always collected memory.pressure for all cgroups
cgroup:
  system.slice:
    cgroup:
      systemd-journald.service:
        collectors: [io.pressure, io.stat]  # Want to know detailed IO stats for systemd-journald for whatever reason
      kubelet.service:
        collectors: [memory.events] # debug OOMs in kubelet.service
  kubepods.slice:
    collectors: [cpu.current, memory.current]
    cgroup:
      kubepods-burstable.slice:
        collectors: [~memory.pressure] # negated. We don't collect any metrics for burstable. dont care
      kubepods-besteffort.slice:
        collectors: [cpu.min, memory.min]
      kubepods-guaranteed.slice:
        collectors: [cpu.events, memory.events, cpu.min,  cpu.max, memory.min,]  # collect OOMs,  how often hitting memory.max, cpu.max etc
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant