cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Retrieve host total memory via API

The API only allows one to retrieve memory available (com.dynatrace.builtin:host.mem.available) and memory used (com.dynatrace.builtin:host.mem.used), I don't see an option for total memory. Am I right in saying that to get total memory, I could simply add available and used? What about the newly introduced reclaimable memory, will that make it into the timeseries metrics and how would that affect my calculation, if at all?

I'm pulling the json data for available and used memory into Power BI, but the total never adds up correctly - I checked the values prior to pulling them into BI and even then they don't add up correctly...has anyone else seen this? Either I'm doing something wrong, or misunderstanding the values. I've checked the values (Bytes) and irrespective of whether I divide the Bytes value by 1024 (binary) or 1000 (decimal) to get to KB, it ends up with the incorrect values. I've tried using MAX, MIN, AVG over very short and longer timeframes, using TOTAL instead of SERIES, but I never get the values I see on the host details dashboard.


6 REPLIES 6

jerry_gassie
Newcomer

I would also be interested in this... there should be a "total" timeseriesId type...

Or, they should just add the "total memory" value as a property returned for the standard Hosts calls


jeff_rowell
Helper

I have a similar question / issue. I want to retrieve the total memory for each monitored server, and I am unable to make sense of the values that are returned via com.dynatrace.builtin:host.mem.used. The value returned by the API does not match the total, reclaimable, or used values shown in Dynatrace, or any combination of these. Is there any way to programatically obtain the total server memory?


handjojo_sebast
Newcomer

1 year later no one from Dynatrace answer this question. This is such
basic functionality, that the API cannot provide. And we are paying
millions for this software

AntonioSousa
Leader

so if we bought a 32 GB of RAM for server,
and the online Shop even bill me for 32GB of RAM,
and we install it to the hardware and Bios detect 32 GB of RAM,
and Windows said also 32 GB of RAM,
and Dynatrace (we paid millions) said look here calculate yourself ...

is that it ?

Yep 😛 haha