# Metricbeat - system.process.cpu.total.ticks Help

**URL:** <https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 17, 2018, 7:46pm UTC](https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389 "2018-05-17T19:46:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suman\_tripuraneni](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@suman\_tripuraneni](https://discuss.elastic.co/u/suman_tripuraneni)\
**Post date:** [May 17, 2018, 7:46pm UTC](https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389/1 "2018-05-17T19:46:13Z")

</div>

Hi,

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.

1. 

metricbeat.modules:

- module: system  
metricsets: [cpu]  
cpu.metrics: [percentages, normalized\_percentages, ticks]

1. 

- module: system  
metricsets:

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 in both metricbeat 6.1.2 and 6.2.4.

Any suggestions on how to get this metric?

Thanks.

Regards,  
Suman

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [May 18, 2018, 6:29am UTC](https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389/2 "2018-05-18T06:29:33Z")

</div>

Can you try with:

```auto
- module: system
  metricsets:
    - cpu:
      metrics: [percentages, normalized_percentages, ticks]
   ...(rest of metricsets)...

```

---

<div class="post-metadata">

**Author:** ![suman\_tripuraneni](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@suman\_tripuraneni](https://discuss.elastic.co/u/suman_tripuraneni)\
**Post date:** [May 22, 2018, 3:19pm UTC](https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389/3 "2018-05-22T15:19:42Z")

</div>

HI,

I tried your suggestion, however its throwing some conversion error. My yml for system config is as below( no other metrics to keep it simple)

#------------------------------- System Module -------------------------------

- module: system  
metricsets:
  - cpu: # CPU usage  
metrics: [percentages, normalized\_percentages, ticks]

./metricbeat -e -c metricbeat.yml  
2018/05/22 15:11:00.377749 beat.go:436: INFO Home path: [/opt/elk/metricbeat-6.1.2-linux-x86\_64] Config path: [/opt/elk/metricbeat-6.1.2-linux-x86\_64] Data path: [/opt/elk/metricbeat-6.1.2-linux-x86\_64/data] Logs path: [/opt/elk/metricbeat-6.1.2-linux-x86\_64/logs]  
2018/05/22 15:11:00.377771 metrics.go:23: INFO Metrics logging every 30s  
2018/05/22 15:11:00.377917 beat.go:443: INFO Beat UUID: 439db23c-def2-493b-a9f1-b14f40b17173  
2018/05/22 15:11:00.377938 beat.go:203: INFO Setup Beat: metricbeat; Version: 6.1.2  
2018/05/22 15:11:00.378220 client.go:123: INFO Elasticsearch url: [http://168.72.199.108:9200](http://168.72.199.108:9200)  
2018/05/22 15:11:00.378711 module.go:76: INFO Beat name: sd-4671-2176  
2018/05/22 15:11:00.378987 beat.go:635: CRIT Exiting: 1 error: can not convert 'object' into 'string' accessing 'metricbeat.modules.0.metricsets.0' (source:'metricbeat.yml')  
Exiting: 1 error: can not convert 'object' into 'string' accessing 'metricbeat.modules.0.metricsets.0' (source:'metricbeat.yml')

Any suggestions?

---

<div class="post-metadata">

**Author:** ![suman\_tripuraneni](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@suman\_tripuraneni](https://discuss.elastic.co/u/suman_tripuraneni)\
**Post date:** [May 22, 2018, 4:25pm UTC](https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389/4 "2018-05-22T16:25:20Z")

</div>

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.

1. 

#------------------------------- System Module -------------------------------

- module: system  
metricsets:
  - cpu # CPU usage  
enabled: true  
cpu.metrics: [percentages, normalized\_percentages, ticks]  
processes: ['.\*']

1. 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: ['._']

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2018, 4:37pm UTC](https://discuss.elastic.co/t/metricbeat-system-process-cpu-total-ticks-help/132389/5 "2018-06-19T16:37:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
