Search code examples
kubernetesmonitoringprometheusmetrics

What does apiserver_request_duration_seconds prometheus metric in Kubernetes mean?


I want to know if the apiserver_request_duration_seconds accounts the time needed to transfer the request (and/or response) from the clients (e.g. kubelets) to the server (and vice-versa) or it is just the time needed to process the request internally (apiserver + etcd) and no communication time is accounted for ?

As a plus, I also want to know where this metric is updated in the apiserver's HTTP handler chains ?


Solution

  • How long API requests are taking to run. Whole thing, from when it starts the HTTP handler to when it returns a response.