I read the question as “Why don’t I get MHz when I ask for Uptime?” but maybe I’m wrong
The query
lq "GET services
Filter: host_name = ESX1
Filter: service_description = Uptime
Columns: rrddata:m1:uptime.max,1,*:1593883300:1596568904:1
OutputFormat: json"
fetches the performance data of
- host
ESX1
and - service
Uptime
between - Sat Jul 4 19:21:40 CEST 2020 (
1593883300
) and - Tue Aug 4 21:21:44 CEST 2020 (
1596568904
)
If you want to fetch the MHz, then you obviously have to pick another service – preferably one that shows MHz values, maybe ESX CPU
?
The code snippet you refer to and given here by @andreas-doehler was just an example of how to get such historical data in general.