I want to get the time-consuming operations of my service from Metrics API.
The average response time and average CPU time can be read from builtin metrics service.response.time and service.cpu.perRequest.
I want to see how much time is spent on querying my database and waiting for other services on average per request.
There are builtin metrics named service.dbChildCallTime and service.nonDbChildCallTime. However, these metrics only give the total elapsed time in a given time period (1 minute by default).
Can I get these metric values by requests instead of total values in a 1-minute period?