Open bboreham opened 6 years ago
A note that many prometheus middleware will have a metric covering that, eg. https://github.com/prometheus/client_golang/blob/master/prometheus/process_collector.go#L61. Maybe we could just get rid of the scope one.
The count is of the number of entries in /proc/<pid>/fd
. This does include sockets. Which makes the figure useful.
Open files doesn't strike me as a very interesting metric
I agree. It's not very useful, but only until you have too many and hit the limit.
From a cpu profile:
so nearly 10% of the user CPU time goes in
fs.ReadDirCount
and most of that just calling the syscall; the kernel side will cost also.Open files doesn't strike me as a very interesting metric, although it's one of the three that Scope graphs for a process. I guess we could use a larger buffer, though the vast majority of processes will fit in one read. Maybe sample it less often?