FAQs and How-tos
How to measure a multi-step process using a duration meter
4 min
in some cases, you may want to track the duration of different steps or phases within a complex process for example, during a new user setup , a series of api calls might be made, and you'd like to monitor how long each step takes recommended approach instead of creating a separate meter for each api call or process segment, you can use a single duration meter with a dimension to represent each segment steps create a single duration meter add a dimension (e g , segment) where each value corresponds to a specific step in the process sending events when the process starts send an event with value = 1 and segment = firstsegment at the start of the next segment send another event (same meter) with value = 1 and segment = nextsegment when the final segment concludes send an event with value = 0 and segment = lastsegment benefits reduces the number of distinct meters you need to create and maintain provides granular insight into the duration of each individual segment the total duration from start to finish 📘 faqs and how tos docid\ bq14rede1rrwst00mbikx see related from metering and event ingestion how to track seat based objects in amberflo docid\ k8g0vmh6adgukb3dmezay how to meter the number of active seats or users for a customer docid\ vyzt7z7cdkrhjyl avl68 how to understand dimensions in amberflo docid\ ai7gyga p lhj8fwzca f how to verify the accuracy of meter data docid\ ne5rit1fjkfpatdbiej s how to track and bill for "high watermark" usage docid\ g l0lgdqyvfnccrsv2xbr how to handle erroneous or incorrect meters sent to amberflo docid\ awzcv2cw6swss2ffmcl58 how to find the meter id for retrieving and deleting a specific meter docid\ ty1vub6lz6u3fo nbfgb6 how to delete meters that are no longer in use docid\ x x7d16c6dwqrz zfdyvk how to handle high volume, high cardinality event streams docid\ edxld02jcxuqp2dkmd3 b