Worker Metrics using gql api endpoint
# workers-help
t
I'm trying to create a custom dashboard for my worker. Looking at the sum fields in the documentation I can't find what the units of the responses are. Can anyone assist? E.g. what is the unit for
wallTime
here?
k
Microseconds probably
All other usages of it are microseconds
Same with CPU time
Copy code
gql
type AccountWorkersInvocationsAdaptiveMax {
  # Maximum CPU time for one request - microseconds
  cpuTime: float64!
  # Maximum duration of one request - GB*s
  duration: float64!
  # Maximum response body size for one request - bytes
  responseBodySize: float64!
  # Maximum wall time for one request - microseconds
  wallTime: float64!
}

type AccountWorkersInvocationsAdaptiveMin {
  # Minimum CPU time for one request - microseconds
  cpuTime: float64!
  # Minimum duration of one request - GB*s
  duration: float64!
  # Minimum response body size for one request - bytes
  responseBodySize: float64!
  # Minimum wall time for one request - microseconds
  wallTime: float64!
}
t
Thanks for that @kian - where did you grab the above from? Can't find that cpuTime metric on the gql endpoint docs