# Total CPU usage by instance/host in one graph

**URL:** <https://community.grafana.com/t/total-cpu-usage-by-instance-host-in-one-graph/34375>\
**Category:** Grafana\
**Created:** [July 29, 2020, 7:35pm UTC](https://community.grafana.com/t/total-cpu-usage-by-instance-host-in-one-graph/34375 "2020-07-29T19:35:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shorowitz](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@shorowitz](https://community.grafana.com/u/shorowitz)\
**Post date:** [July 29, 2020, 7:35pm UTC](https://community.grafana.com/t/total-cpu-usage-by-instance-host-in-one-graph/34375/1 "2020-07-29T19:35:14Z")

</div>

Primary data source is prometheus. Full disclosure: I feel way in over my head. I have a bunch of dashboards that I have imported and some I have modified. I have even got some custom queries to calculate specific metrics out of a mySQL database, like the last time a successful sync between APIs happened. I’m not totally helpless, but I am brand new to Prometheus and Grafana.

I have a collection of about 8-10 servers doing different things and I have set up them up with the node\_exporter. I have a couple of nice dashboards with details and that’s great. I’m trying to build a nice overview dashboard that combines a bunch of different things. I want a single graph panel that gives me the total CPU usage divided by the number of CPU cores, so one line per host/instance.

I can get total CPU usage graphed per instance, but I cannot for the life of me figure out how to divide it by the number of CPU cores. In this collection of servers I want to get a birds-eye view of, I have one machine with a single core and one with twelve, and the rest are in between. Obviously if the 12-core box is sitting at 80% total that’s no big deal divided by 12, but if the single-core box has been at 50% usage for a while I want to be able to see that.

Is what I’m after possible?
