# Display host properties on dashboard from data collected by OneAgent

**URL:** <https://community.dynatrace.com/t/display-host-properties-on-dashboard-from-data-collected-by-oneagent/45818>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, hosts-classic, dashboards\
**Created:** [May 29, 2024, 6:32pm UTC](https://community.dynatrace.com/t/display-host-properties-on-dashboard-from-data-collected-by-oneagent/45818 "2024-05-29T18:32:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgooge](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jgooge](https://community.dynatrace.com/u/jgooge)\
**Post date:** [May 29, 2024, 6:32pm UTC](https://community.dynatrace.com/t/display-host-properties-on-dashboard-from-data-collected-by-oneagent/45818/1 "2024-05-29T18:32:34Z")

</div>

I’m looking to add data to a dashboard such as logical CPU Core count totals from data collected by the OneAgent but cannot find a way to add this information, I know there are APIs that can gather this information, but how can I add them to a dashboard?

(Managed Environment)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 29, 2024, 7:48pm UTC](https://community.dynatrace.com/t/display-host-properties-on-dashboard-from-data-collected-by-oneagent/45818/2 "2024-05-29T19:48:37Z")

</div>

In general, this is not easily possible. Apart from the specific tiles, basically you are left with data explorer or markdown. Data Explorer can only display metrics. Number of CPU cores is unfortunately not a metric, but an attribute.

Probably the best you can achieve with classic dashboard (only option in Managed) is to have a list of hosts which have fixed CPU cores value (or any other attribute) by using [entitySelectors](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector#attribute), for example:

```markup
builtin:host.cpu.usage
:filter(in("dt.entity.host",entitySelector("type(host),cpuCores(4)")))
:splitBy("dt.entity.host")

```

You can also use metric expression, so you can have a static value of 1:

```markup
builtin:host.cpu.usage
:filter(in("dt.entity.host",entitySelector("type(host),cpuCores(4)")))
:splitBy("dt.entity.host")
/ 
builtin:host.cpu.usage
:filter(in("dt.entity.host",entitySelector("type(host),cpuCores(4)")))
:splitBy("dt.entity.host")

```

Which displays quite nicely.

If you dashboard is static - you can also consider having a markdown time which will be updated by automation of your choice and using the Dynatrace Dashboard API.
