-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split out guest cpu metrics on Linux. #744
Conversation
ae02cfb
to
6f62107
Compare
Oh! Good catch. LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
collector/cpu_linux.go
Outdated
@@ -57,6 +58,11 @@ func NewCPUCollector() (Collector, error) { | |||
"Seconds the cpus spent in each mode.", | |||
[]string{"cpu", "mode"}, nil, | |||
), | |||
cpuGuest: prometheus.NewDesc( | |||
prometheus.BuildFQName(namespace, cpuCollectorSubsystem, "guest_seconds_total"), | |||
"Seconds the cpus spent for guests (VMs) in each mode.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above metric uses "in" rather than "for"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about: Seconds the cpus spent in guests (VMs) for each mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
Oh |
Linux "guest" metrics for VMs are already accounted for in node_cpu `user` and `nice` metrics. Separate these into their own metric to avoid duplication of data.
6f62107
to
6a1d29e
Compare
Linux "guest" metrics for VMs are already accounted for in node_cpu `user` and `nice` metrics. Separate these into their own metric to avoid duplication of data.
Linux "guest" metrics for VMs are already accounted for in node_cpu
user
andnice
metrics. Separate these into their own metric toavoid duplication of data.
Closes: #737