Dynatrace Metrics API

Hi,

I am using the below metric API

r = requests.get(‘https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/v2/metrics/query’, verify=False, headers=headers, params=payload)

“metricSelector”: “builtin:host.disk.used” .

This API returns the disk used values in 3159478272 format. What is this format how to convert this values to GB ??

How to do memory prediction without using davis?

Hi @geet28 The metric builtin:host.disk.used measure the amount of used space in file system in bytes. 1 GB = 1073741824 B

for conversion just divide the result: 3159478272/1073741824= 2.94GB