-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Make system process metricset honor cpu_ticks config option #3776
Conversation
When `cpu_ticks` is true in the config file, the system process metricset will report the number of “ticks” (actually jiffies on linux) used in user space (`system.process.cpu.user`), system (`system.process.cpu.system`), and total (`system.process.cpu.total.ticks`). Fixes elastic#3590
}, | ||
"start_time": unixTimeMsToTime(process.Cpu.StartTime), | ||
} | ||
proc.Put("cpu.user", process.Cpu.User) |
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.
nice, that also cleans up the code. It bugs me that we only use .ticks
for the total but that would be a BC break.
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.
I felt the same way, but didn't want to break BC.
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.
Lets keep it in mind to "potentially" break for 6.0 ;-)
@andrewkroh I added |
…3776) When `cpu_ticks` is true in the config file, the system process metricset will report the number of “ticks” (actually jiffies on linux) used in user space (`system.process.cpu.user`), system (`system.process.cpu.system`), and total (`system.process.cpu.total.ticks`). Fixes elastic#3590 (cherry picked from commit 92fa6c4)
…3776) When `cpu_ticks` is true in the config file, the system process metricset will report the number of “ticks” (actually jiffies on linux) used in user space (`system.process.cpu.user`), system (`system.process.cpu.system`), and total (`system.process.cpu.total.ticks`). Fixes elastic#3590 (cherry picked from commit 92fa6c4)
…4005) When `cpu_ticks` is true in the config file, the system process metricset will report the number of “ticks” (actually jiffies on linux) used in user space (`system.process.cpu.user`), system (`system.process.cpu.system`), and total (`system.process.cpu.total.ticks`). Fixes #3590 (cherry picked from commit 92fa6c4)
When
cpu_ticks
is true in the config file, the system process metricset will report the number of "ticks" (actually jiffies on linux) used in user space (system.process.cpu.user
), system (system.process.cpu.system
), and total (system.process.cpu.total.ticks
).Fixes #3590