-
Notifications
You must be signed in to change notification settings - Fork 971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Add rest client metrics #3274
Conversation
Signed-off-by: Xuzheng Chang <[email protected]>
/lgtm |
No qps of scheduler action ? |
qps of scheduler action via apiserver |
All client-go metrics have been imported and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
related issue:#3222
The following metrics will be added:
rest_client_exec_plugin_certificate_rotation_age_bucket{le="600"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="1800"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="3600"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="14400"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="86400"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="604800"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="2.592e+06"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="7.776e+06"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="1.5552e+07"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="3.1104e+07"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="1.24416e+08"} 0
rest_client_exec_plugin_certificate_rotation_age_bucket{le="+Inf"} 0
rest_client_exec_plugin_certificate_rotation_age_sum 0
rest_client_exec_plugin_certificate_rotation_age_count 0
HELP rest_client_exec_plugin_ttl_seconds [ALPHA] Gauge of the shortest TTL (time-to-live) of the client certificate(s) managed by the auth exec plugin. The value is in seconds until certificate expiry (negative if already expired). If auth exec plugins are unused or manage no TLS certificates, the value will be +INF.
rest_client_exec_plugin_ttl_seconds +Inf
HELP rest_client_rate_limiter_duration_seconds [ALPHA] Client side rate limiter latency in seconds. Broken down by verb, and host.
TYPE rest_client_rate_limiter_duration_seconds histogram
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.005"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.025"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.1"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.25"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.5"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="1"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="2"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="4"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="8"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="15"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="30"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="60"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="+Inf"} 17
rest_client_rate_limiter_duration_seconds_sum{host="10.96.0.1:443",verb="GET"} 1.8767e-05
rest_client_rate_limiter_duration_seconds_count{host="10.96.0.1:443",verb="GET"} 17
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.005"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.025"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.1"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.25"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.5"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="1"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="2"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="4"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="8"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="15"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="30"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="60"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="+Inf"} 1
rest_client_rate_limiter_duration_seconds_sum{host="10.96.0.1:443",verb="POST"} 3.099e-06
rest_client_rate_limiter_duration_seconds_count{host="10.96.0.1:443",verb="POST"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.005"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.025"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.1"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.25"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.5"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="1"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="2"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="4"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="8"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="15"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="30"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="60"} 1
rest_client_rate_limiter_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="+Inf"} 1
rest_client_rate_limiter_duration_seconds_sum{host="10.96.0.1:443",verb="PUT"} 2.224e-06
rest_client_rate_limiter_duration_seconds_count{host="10.96.0.1:443",verb="PUT"} 1
HELP rest_client_request_duration_seconds [ALPHA] Request latency in seconds. Broken down by verb, and host.
TYPE rest_client_request_duration_seconds histogram
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.005"} 8
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.025"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.1"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.25"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="0.5"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="1"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="2"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="4"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="8"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="15"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="30"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="60"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="GET",le="+Inf"} 17
rest_client_request_duration_seconds_sum{host="10.96.0.1:443",verb="GET"} 0.10579177299999999
rest_client_request_duration_seconds_count{host="10.96.0.1:443",verb="GET"} 17
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.005"} 0
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.025"} 0
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.1"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.25"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="0.5"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="1"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="2"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="4"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="8"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="15"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="30"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="60"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="POST",le="+Inf"} 1
rest_client_request_duration_seconds_sum{host="10.96.0.1:443",verb="POST"} 0.038625551
rest_client_request_duration_seconds_count{host="10.96.0.1:443",verb="POST"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.005"} 0
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.025"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.1"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.25"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="0.5"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="1"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="2"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="4"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="8"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="15"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="30"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="60"} 1
rest_client_request_duration_seconds_bucket{host="10.96.0.1:443",verb="PUT",le="+Inf"} 1
rest_client_request_duration_seconds_sum{host="10.96.0.1:443",verb="PUT"} 0.005383507
rest_client_request_duration_seconds_count{host="10.96.0.1:443",verb="PUT"} 1
HELP rest_client_request_size_bytes [ALPHA] Request size in bytes. Broken down by verb and host.
TYPE rest_client_request_size_bytes histogram
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="64"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="256"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="512"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="1024"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="4096"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="16384"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="65536"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="262144"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="1.048576e+06"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="4.194304e+06"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="1.6777216e+07"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="+Inf"} 17
rest_client_request_size_bytes_sum{host="10.96.0.1:443",verb="GET"} 0
rest_client_request_size_bytes_count{host="10.96.0.1:443",verb="GET"} 17
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="64"} 0
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="256"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="512"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="1024"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="4096"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="16384"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="65536"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="262144"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="1.048576e+06"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="4.194304e+06"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="1.6777216e+07"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="+Inf"} 1
rest_client_request_size_bytes_sum{host="10.96.0.1:443",verb="POST"} 216
rest_client_request_size_bytes_count{host="10.96.0.1:443",verb="POST"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="64"} 0
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="256"} 0
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="512"} 0
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="1024"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="4096"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="16384"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="65536"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="262144"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="1.048576e+06"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="4.194304e+06"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="1.6777216e+07"} 1
rest_client_request_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="+Inf"} 1
rest_client_request_size_bytes_sum{host="10.96.0.1:443",verb="PUT"} 890
rest_client_request_size_bytes_count{host="10.96.0.1:443",verb="PUT"} 1
HELP rest_client_requests_total [ALPHA] Number of HTTP requests, partitioned by status code, method, and host.
TYPE rest_client_requests_total counter
rest_client_requests_total{code="200",host="10.96.0.1:443",method="GET"} 28547
rest_client_requests_total{code="200",host="10.96.0.1:443",method="PUT"} 1
rest_client_requests_total{code="409",host="10.96.0.1:443",method="POST"} 1
HELP rest_client_response_size_bytes [ALPHA] Response size in bytes. Broken down by verb and host.
TYPE rest_client_response_size_bytes histogram
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="64"} 0
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="256"} 9
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="512"} 9
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="1024"} 11
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="4096"} 12
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="16384"} 15
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="65536"} 16
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="262144"} 17
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="1.048576e+06"} 17
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="4.194304e+06"} 17
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="1.6777216e+07"} 17
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="GET",le="+Inf"} 17
rest_client_response_size_bytes_sum{host="10.96.0.1:443",verb="GET"} 192467
rest_client_response_size_bytes_count{host="10.96.0.1:443",verb="GET"} 17
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="64"} 0
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="256"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="512"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="1024"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="4096"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="16384"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="65536"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="262144"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="1.048576e+06"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="4.194304e+06"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="1.6777216e+07"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="POST",le="+Inf"} 1
rest_client_response_size_bytes_sum{host="10.96.0.1:443",verb="POST"} 250
rest_client_response_size_bytes_count{host="10.96.0.1:443",verb="POST"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="64"} 0
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="256"} 0
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="512"} 0
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="1024"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="4096"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="16384"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="65536"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="262144"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="1.048576e+06"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="4.194304e+06"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="1.6777216e+07"} 1
rest_client_response_size_bytes_bucket{host="10.96.0.1:443",verb="PUT",le="+Inf"} 1
rest_client_response_size_bytes_sum{host="10.96.0.1:443",verb="PUT"} 890
rest_client_response_size_bytes_count{host="10.96.0.1:443",verb="PUT"} 1
verify:rest client related metrics returned