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

Dynatrace Metrics API

geet28
Visitor

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?

 

 

 

2 REPLIES 2

DanielS
DynaMight Guru
DynaMight Guru

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

The true delight is in the finding out rather than in the knowing.

DanielS
DynaMight Guru
DynaMight Guru

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

The true delight is in the finding out rather than in the knowing.

Featured Posts