[feat] Add rest client metrics #3274
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
