Did you take a look at one of the other Forum posts about the Metric activities?
https://forum.mendix.com/link/space/microflows/questions/129743
https://forum.mendix.com/link/space/microflows/questions/127433
And the Mendix documentation.