I have been trying to figure out how to properly plot some of the following counters to show some breakdown on workflow_type or activity_type:
- temporal_request_total (for plotting all successful activity)
it’s been unfruitful so far. Looks like all these metrics are not emitted as zeros and I am not able to plot them accurately. How do people handle these?
For these counter metrics you could do for example:
Yes, SDK does not emit these counters for 0, meaning for example workflow_completed_total will be emitted once a workflow execution completes (counter increased by 1).
sum(rate(...)) but it doesn’t really show accurate value, same as
What are you trying to display? Why is data not accurate?
Rate gives you average rate over time. You can always look at the raw metric value in Prometheus for example.
I am trying to display:
- number of succeed/failed workflows by types
- number of succeed/failed activity by types
Using rates or increase drops to zeros during low-volume.