Incorrect unit conversion

I have setup jmx agent, prometheus and grafana. The metrics are being scraped correctly from kafka application. But metrics like latency need to be in seconds, miliseconds or nanoseconds but they are being scraped as a floating point number. When I display this metric on grafana it is not able to convert this floating number to time. How to solve this?


Perhaps you need transformation with convert the field to datetime.
Then you can use duration to get the latency value.