I’m currently trying to monitor the energy consumption of my AGX Orin jetson with the python package jtrop. I’m using prometheus and grafana to get a remote visualisation, and I’d like to know how I can increase the jtop sample rate from my prometheus exporter to python using flask. I’m using an instantiation of the type :
self._jetson = jtop()
self._jetson.start()
I’ve already set the prometheus scrapping time to measure every 100ms and I’d like Jtop to also provide a metric every 100ms. I’ve tried various things with the ‘interval’ variable but I haven’t managed to get the desired behaviour
I am using the AGX Orin devkit with jetpack 6.1, my goal here is to use the jetson-stats python library to export the metrics i want trough a flask server and acess them with grafana and prometheus for vizualisation. Prometheus just send a get request to the server and with that i can get the values of cpu usage, gpu usage, power usage etc… However i did not suceed to speed up the interval or refresh rate of jetson-stat, so even if i’m getting values every 100ms with prometheus, the server only change its metrics every 1000ms.
I saw that when using the bash jtop command there is a flag called ‘–refresh’ and I wanted to know if there was an equivalent in the python library.