mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
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:
parent
206f5cd522
commit
a6843067e9
4 changed files with 29 additions and 27 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue