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

retrieving daily metric give wrong date

Vijayt
Contributor

I am trying to retries Cpu utilization from remote for a period  but results are one day ahead

following are details

remote_unix.cpu_utilization:<custom host>:avg
from=2025-02-21T01:57.01.123+00.00&to=2025-02-26T21:57:01.123+00.00&resolution=1d
2025-02-22 00:00:00,6.911111111111111
2025-02-23 00:00:00,5.658741258741259
2025-02-24 00:00:00,6.070138888888889
2025-02-25 00:00:00,6.195969423210563
2025-02-26 00:00:00,6.677268475210477
2025-02-27 00:00:00,

while i query from 21st to 26th but results are coming from 22nd to 27th 

 

4 REPLIES 4

p_devulapalli
Champion

@Vijayt How are you querying this data ? Could be a difference in timezone? 

Phani Devulapalli

i am in IST . how to get the data in UTC . 

 

@Vijayt I think the data that you are querying is already in UTC . The variation that you are seeing is because of the 1d resolution and time slot of the data sample stored by dynatarce. 

Here is some explanation around that , hope this helps.

https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-get-datapoints#timeframe-note

 

Phani Devulapalli

my requirement id to retrieve  daily average cpu usage. with correct date on it. is there any workaroun

d

Featured Posts