I'm interested in knowing how many millimetres of filament have been extruded, and the octoprint_extrusion_total metric seems to be in some unit that gives very large numbers. Is it possibly in ... microsteps?
Assuming that is true, I have gotten some success dividing by plausible constants (number of microsteps, number of steps per rotation, distance of filament for a full rotation, ...). This has gotten me to match the expected extruded amounts for various jobs. But I still found I needed to add a mystery factor of 1000...
E.g. octoprint_extrusion_total{job="octoprint"} / 16 / 200 * 31.93 / 1000
Looking at the plugin source, it looks like it's just adding up all the gcode extrusions, so I would have expected it to already be in millimetres...
I'm interested in knowing how many millimetres of filament have been extruded, and the
octoprint_extrusion_total
metric seems to be in some unit that gives very large numbers. Is it possibly in ... microsteps?Assuming that is true, I have gotten some success dividing by plausible constants (number of microsteps, number of steps per rotation, distance of filament for a full rotation, ...). This has gotten me to match the expected extruded amounts for various jobs. But I still found I needed to add a mystery factor of 1000...
E.g.
octoprint_extrusion_total{job="octoprint"} / 16 / 200 * 31.93 / 1000
Looking at the plugin source, it looks like it's just adding up all the gcode extrusions, so I would have expected it to already be in millimetres...
What unit is this metric in?