Skip to content

Commit

Permalink
refactor!(libsinsp/metrics): extract metric conversions out of metric…
Browse files Browse the repository at this point in the history
…s_collector

Separation of concerns: new metrics_converter subclasses

Rename the following metric names for consistency:

cpu_usage_perc_total_host -> host_cpu_usage_perc
memory_used_host -> host_memory_used_kb (or host_memory_used_mb if unit converted)
procs_running_host -> host_procs_running
open_fds_host -> host_open_fds

memory_rss -> memory_rss_kb (or memory_rss_mb if unit converted)
memory_pss -> memory_pss_kb (or memory_pss_mb if unit converted)
memory_vsz -> memory_vsz_kb (or memory_vsz_mb if unit converted)
container_memory_used -> container_memory_used_bytes (or container_memory_used_mb if unit converted)

Signed-off-by: Melissa Kilby <[email protected]>
  • Loading branch information
incertum committed Feb 10, 2024
1 parent 76d2064 commit 110e833
Show file tree
Hide file tree
Showing 3 changed files with 608 additions and 333 deletions.
Loading

0 comments on commit 110e833

Please sign in to comment.