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

@ -263,7 +263,8 @@ private:
GaugePtr rss_gauge;
GaugePtr vms_gauge;
GaugePtr cpu_gauge;
CounterPtr cpu_user_counter;
CounterPtr cpu_system_counter;
GaugePtr fds_gauge;
std::shared_ptr<prometheus::Registry> prometheus_registry;