What is the output unit of the JSON exporter #251
Replies: 2 comments
-
Hi @joritprins and thanks for asking ! I am pretty sure that the JSON exporter returns the consumption in microwatts (i.e. in the same unit as the consumption metric in the prometheus exporter). The mapping from Scaphandre internal value (explicitly in microwatts) to JSON seems to be done here:
I must agree that the doc is not very clear on this point. Furthermore, the name of the field in JSON is less explicit than the name of metric. We should see if we can improve the doc. |
Beta Was this translation helpful? Give feedback.
-
Hi @demeringo , thanks for your quick and clear answer! |
Beta Was this translation helpful? Give feedback.
-
I am using Scaphandre to measure the energy/power consumption of a program. I have made a script that saves the process id and runs scaphandre at the same time as the program. I use the JSON exporter and match the PID with the PID i saved. One of the measurements i got is:
{ "exe":"program", "pid":3819, "consumption":5897885.0, "timestamp":1673014148.9140978 }
But what is the unit of the consumption? In the explenation in the documentation all the y-axis in the graphs are labeled as "power consumption", so that would mean the unit is Watts. In the JSON exporter documentation is the following line
JSON exporter allows you to output the power consumption data in a json file
so this would also be Watts right?Thanks for reading and helping :)
Beta Was this translation helpful? Give feedback.
All reactions