[receiver/kubeletstats] Add k8s.node.rlimit metrics to track max pid and current count #29699
Labels
closed as inactive
enhancement
New feature or request
priority:p2
Medium
receiver/kubeletstats
Stale
Component(s)
receiver/kubeletstats
Is your feature request related to a problem? Please describe.
One of the eviction signals used by kubelet is
pid.available
(available process identifiers). I'd like to be able to track pid utilization on a host.Describe the solution you'd like
The
/stats/summary
api exposes 2 useful metrics to track pids available on a node,node.rlimit.curproc
andnode.rlimit.maxpid
. We should optionally scrape these 2 additional metrics from stats/summary endpoint to allow for tracking of pid utilization.Describe alternatives you've considered
We could technically get the running processes from the
processes
scraper of hostmetrics receiver but I did not find metrics for getting the limit which is set tomin("/proc/sys/kernel/pid_max", "/proc/sys/kernel/threads-max")
. We might consider addingpid_max
andthreads-max
to hostmetrics/processes receiver since these are useful limits to track in general whether running k8s or not.Additional context
No response
The text was updated successfully, but these errors were encountered: