# How add Service CPU Usage % to dashboard

**URL:** <https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards-classic\
**Created:** [April 19, 2021, 3:47pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182 "2021-04-19T15:47:27Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [April 19, 2021, 3:47pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/1 "2021-04-19T15:47:27Z")

</div>

Hello

We need look&nbsp;&nbsp; **Service CPU Usage %** on dashboard

It metric available on&nbsp; **Detailed CPU consumption** page

 ![MAkimov_0-1618847101571.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5265f9022cdee31214b1655bb0dee84e1a14b6a2.png)

**How I can add it to Custom chart ?**

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [April 19, 2021, 4:16pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/2 "2021-04-19T16:16:46Z")

</div>

Hi&nbsp;[@MAkimov](https://community.dynatrace.com/user/33639)

You can filter the metric builtin:host.cpu.system&nbsp;with host you are looking for and then pin it to the dashboard

 ![Yosi_Neuman_1-1618848993510.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8bce7abe29caf4d72612cb079840040fd02a4907.png)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [April 20, 2021, 6:26am UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/3 "2021-04-20T06:26:36Z")

</div>

Hello&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)

I do not need&nbsp; **host.cpu.system !**

I need **service CPU usage %**

Metric which you can see on my screen for&nbsp; **Detailed CPU consumption**

Fot example for **easyTravell Customer frontend**

 ![MAkimov_0-1618899841595.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c4d948276abade82120e4cc9306797ec77f318fc.png)

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [April 20, 2021, 8:03am UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/4 "2021-04-20T08:03:58Z")

</div>

Hi&nbsp;[@MAkimov](https://community.dynatrace.com/user/33639)&nbsp;  
You can use one of these?

 ![andre_vdveen_0-1618905798981.png](https://global.discourse-cdn.com/dynatrace/original/1X/a14b9fbd65e4e9be54fed4f9c05abde8d4f97314.png)

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [April 20, 2021, 8:25am UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/5 "2021-04-20T08:25:55Z")

</div>

Hello&nbsp;[@andre\_vdveen](https://community.dynatrace.com/user/11931)

It is CPU time. We understand it metric

But we want have metric&nbsp; **service CPU usage %** on dashboard

see my screen

 ![MAkimov_0-1618907119650.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e99555f0baccde569c6469057dc0e411eef81d6a.png)

---

<div class="post-metadata">

**Author:** ![Ingrida](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ingrida/32/13926_2.png) [@Ingrida](https://community.dynatrace.com/u/Ingrida)\
**Post date:** [June 7, 2021, 2:28pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/6 "2021-06-07T14:28:06Z")

</div>

Not sure if it helps, but your screenshot has Processes CPU Consumption, not Services.

Processes CPU consumption (and other metrics per Process) can be found under Technologies \> Generic \> CPU (or just put builtin:tech.generic.cpu.usage im Metric field)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 8, 2021, 12:31pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/7 "2021-06-08T12:31:43Z")

</div>

[@MAkimov](https://community.dynatrace.com/user/33639)&nbsp;There isn’t a way to target the CPU consumption of a Service as a dashboard Tile/Chart. You can tile/Chart the next level down which would be done by marking things as Key Requests. Keep in mind, marking key requests are always forward facing.

I would recommend putting in a RFE as the functionality that you are looking for does not exist in the product as of today from a dashboard view point.

As a work around, you can use a mark down tile and drop a link to the page that you want to access. But even then it wont show you values on the dashboard, rather just quick and easy access to the page.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 8, 2021, 12:33pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/8 "2021-06-08T12:33:57Z")

</div>

The Screen shot that was provided does indeed show the services. The view point is looking at a specific process, and the services running on that process. If the User were to click on ‘easytravel customer frontend’ that would transport them to the selected service.

---

<div class="post-metadata">

**Author:** ![urs\_fischer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/urs_fischer/32/7896_2.png) [@urs\_fischer](https://community.dynatrace.com/u/urs_fischer)\
**Post date:** [January 12, 2022, 2:20pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/9 "2022-01-12T14:20:20Z")

</div>

[@MAkimov](https://community.dynatrace.com/user/33639)&nbsp;did you open a RFE? i have the same “Problem” here. Regards, Urs

---

<div class="post-metadata">

**Author:** ![lex-mascarenhas](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@lex-mascarenhas](https://community.dynatrace.com/u/lex-mascarenhas)\
**Post date:** [March 8, 2023, 10:52am UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/10 "2023-03-08T10:52:57Z")

</div>

[@MAkimov](https://community.dynatrace.com/user/33639)&nbsp;[@ChadTurner](https://community.dynatrace.com/user/14877)&nbsp; As mentioned above is the feature of detecting “CPU consumption of a Service as a dashboard Tile/Chart” added ?

Please let&nbsp;me know if there is a way of doing&nbsp;this.

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [March 8, 2023, 9:11pm UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/11 "2023-03-08T21:11:39Z")

</div>

Hi&nbsp;@@lex-mascarenha,

Maybe you can try this metric expression. Maybe it is a completly worng way of thinking. Try it.

(builtin:tech.generic.cpu.usage:filter(and(or(in(“dt.entity.process\_group\_instance”,entitySelector(“type(process\_group\_instance),entityName.equals(~“YOUR PG INSTANCE NAME~”)”))))):splitBy():avg)

\*(100\*(builtin:service.cpu.time:filter(and(or(in(“dt.entity.service”,entitySelector(“type(service),entityName.contains(~“YOUR SERVICE NAME~”)”))))):splitBy():avg)

/builtin:tech.generic.cpu.groupTotalTime:filter(and(or(in(“dt.entity.process\_group”,entitySelector(“type(process\_group),entityName.equals(~“YOUR PG NAME~”)”))))):splitBy():avg)

/100

Last column is the above mentioned metric expression:

3rd column came from the first two with a % calculation, then I counted the 10,2% of the 21,59% which is the fifth column.

 ![Mizs_0-1678309053293.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/0/50c3ca5a928ebcd4e9d045320ba894d583fa2018.png)

The above calculated process CPU detailed breakdown with the test service below. I know that 2,68 % is not 2,2% but it is quite close. I have tested it with randomly and the results are really quite close the CPU detailed breakdown values:

 ![Mizs_1-1678309330211.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7a83b8bf10611a674d3dc72f4c182b0c06c4c0e8.png)

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 9, 2023, 6:27am UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/12 "2023-03-09T06:27:38Z")

</div>

Hi&nbsp;[@Mizső](https://community.dynatrace.com/user/47783)

Also thought about utilizing&nbsp;_builtin:tech.generic.cpu.usage_&nbsp;metric but&nbsp;[@MAkimov](https://community.dynatrace.com/user/33639)&nbsp;asked to see the CPU% per service while this metric is showing the process CPU% and one process can run more then one service hence IMO its good answer but not for&nbsp;[@MAkimov](https://community.dynatrace.com/user/33639)&nbsp;request&nbsp;🤔.

Yos

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [March 9, 2023, 7:46am UTC](https://community.dynatrace.com/t/how-add-service-cpu-usage-to-dashboard/31182/13 "2023-03-09T07:46:36Z")

</div>

Hi&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931),

I felt that my solution maybe not correct.&nbsp; I guess the checked services’s CPU consumtion on my side in the CPU profiling were accidentally close to my calclulation.

Thanks for the correction.

Best regards,

Mizső
