I am working on the metricbeat to gather the sys & process info. The particular field -"system.process.cpu.total.ticks" , I am interested in this as, I need to create report by CPU time spent by the process.
I tried as below, however I am not successful so far.
metricbeat.modules:
module: system
metricsets: [cpu]
cpu.metrics: [percentages, normalized_percentages, ticks]
module: system
metricsets:
cpu # CPU usage
filesystem # File system usage for each mountpoint
fsstat # File system summary metrics
load # CPU load averages
memory # Memory usage
network # Network IO
process # Per process metrics
process_summary # Process summary
uptime # System Uptime
core # Per CPU core usage
diskio # Disk IO
socket # Sockets and connection info (linux only)
enabled: true
period: 300s
processes: ['.*']
I also tried to use cpu_ticks: true , but it reported saying its depricated
2018/05/17 18:47:55.731592 cfgwarn.go:18: WARN DEPRECATED: cpu_ticks is deprecated. Add 'ticks' to the cpu.metrics list. Will be removed in version: 6.1
I tried as below (removed other metrics for ease of debugging) and I could get the system.cpu.ticks (like system.cpu.idle.ticks,system.cpu.irq.ticks,system.cpu.nice.ticks,system.cpu.system.ticks,system.cpu.user.ticks), however not the system.process.cpu..ticks in above two attempts.
#------------------------------- System Module -------------------------------
module: system
metricsets:
cpu # CPU usage
enabled: true
cpu.metrics: [percentages, normalized_percentages, ticks]
processes: ['.*']
Tried to enable system.process.cpu* fields #------------------------------- System Module -------------------------------
module: system
metricsets:
cpu # CPU usage
enabled: true
cpu.metrics: [percentages, normalized_percentages, ticks]
process.cpu: ['.']
processes: ['.']
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.