Closed evanrich closed 4 months ago
Hi @evanrich, Salt does not expose the duration of a job. The calculation is done using the request and response message timestamp.
It would increase the complexity of the exporter too much: the exporter would need to keep all job requests in memory to do the calculation when receiving a response + running some sort of garbage collector to clean 'timed out' request.
The best way is to use a returner like you mentioned.
I'm not sure if this is possible with how you implement this but wanted to ask. In your example, you have metrics such as
the heartbeat interval is great for checking if minions are alive or not, and the function status is great for telling if a state was successful, for example