-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
Linux has counters in /proc that show how often different kinds of softirq handlers run. We would like to see these counters to get a hint of where the kernel is spending time in a recurring incident we see on some of our servers. Node_exporter currently does not expose these counters.
There are two ways we could add the counters.
/proc/stat. In prometheus/procfs, we already parse thesoftirqline of that file, which gives global softirq counts./proc/softirqs. This file gives counts per CPU.
I don't have a preference whether we expose the global counters or the per-CPU counters. Exposing the global counters is less development work (we already parse /proc/stat) and it saves a syscall. On the other hand, if somewhere down the line someone wants to see the per-cpu counters, it would be better if we spend our time exposing the per-CPU counters from the start.
- If I were to submit a PR, should it be with the global counters, or per-CPU?
- Does this fit under an existing collector, or should we add a new one?
Reactions are currently unavailable