Split cpu time metric into user/system components like prof.log

The total can be calculated from the two parts via Prometheus/Grafana
if desired, so it's more informative to pass them as separate parts.
This commit is contained in:
Tim Wojtulewicz 2024-08-05 13:06:49 -07:00
parent 206f5cd522
commit a6843067e9
4 changed files with 29 additions and 27 deletions

View file

@ -9,7 +9,8 @@ namespace zeek::telemetry::detail {
struct process_stats {
int64_t rss = 0;
int64_t vms = 0;
double cpu = 0.0;
double cpu_user = 0.0;
double cpu_system = 0.0;
int64_t fds = 0;
};