This topic describes the metrics that are obtained from the Layer 7 access logs of Classic Load Balancer (CLB). The metrics include global metrics, slbid metrics, status metrics, and upstream_status metrics.
The metrics in this topic use the time series data format. You can execute PromQL or SQL statements to query and analyze the metrics. For more information, see Overview of query and analysis on time series data.
Global metrics
The following table describes the global metrics.
Metric | Description |
---|---|
pv | The number of page views (PVs). |
body_bytes_sent_avg | The average number of bytes in the bodies of the HTTP responses that are sent to the client. |
body_bytes_sent_sum | The total number of bytes in the bodies of the HTTP responses that are sent to the client. |
request_length_avg | The average length of the requests. |
request_length_sum | The total length of the requests. |
request_time_avg | The average duration of the requests. |
request_time_p50 | The 50th percentile value for the request durations. |
request_time_p90 | The 90th percentile value for the request durations. |
request_time_p99 | The 99th percentile value for the request durations. |
upstream_response_time_avg | The average duration of the request connections. Note The upstream_response_time field specifies the interval between the time when the CLB instance connects to the backend server and the time when the CLB instance disconnects from the backend server after the required data is received. |
upstream_response_time_p50 | The 50th percentile value for the request connection durations. |
upstream_response_time_p90 | The 90th percentile value for the request connection durations. |
upstream_response_time_p99 | The 99th percentile value for the request connection durations. |
write_response_time_avg | The average time that is taken by the CLB proxy to send the requests to the client after the CLB proxy receives the requests from the backend server. The time is considered the response time. |
write_response_time_p50 | The 50th percentile value for the response time. |
write_response_time_p90 | The 90th percentile value for the response time. |
write_response_time_p99 | The 99th percentile value for the response time. |
slbid metrics
The tag of the slbid metrics is slbid. The following table describes the slbid metrics.
Metric | Unit | Description | Tag |
---|---|---|---|
pv:slbid | count | The number of PVs for the CLB instance. | slbid |
body_bytes_sent_avg:slbid | byte | The average number of bytes in the bodies of the HTTP responses that are sent to the client. | slbid |
body_bytes_sent_sum:slbid | byte | The total number of bytes in the bodies of the HTTP responses that are sent to the client. | slbid |
request_length_avg:slbid | byte | The average length of the requests. | slbid |
request_length_sum:slbid | byte | The total length of the requests. | slbid |
request_time_avg:slbid | second | The average duration of the requests. | slbid |
request_time_p50:slbid | second | The 50th percentile value for the request durations. | slbid |
request_time_p90:slbid | second | The 90th percentile value for the request durations. | slbid |
request_time_p99:slbid | second | The 99th percentile value for the request durations. | slbid |
upstream_response_time_avg:slbid | second | The average duration of the request connections. Note The upstream_response_time field specifies the interval between the time when the CLB instance connects to the backend server and the time when the CLB instance disconnects from the backend server after the required data is received. | slbid |
upstream_response_time_p50:slbid | second | The 50th percentile value for the request connection durations. | slbid |
upstream_response_time_p90:slbid | second | The 90th percentile value for the request connection durations. | slbid |
upstream_response_time_p99:slbid | second | The 99th percentile value for the request connection durations. | slbid |
write_response_time_avg:slbid | second | The average time that is taken by the CLB proxy to send the requests to the client after the CLB proxy receives the requests from the backend server. The time is considered the response time. | slbid |
write_response_time_p50:slbid | second | The 50th percentile value for the response time. | slbid |
write_response_time_p90:slbid | second | The 90th percentile value for the response time. | slbid |
write_response_time_p99:slbid | second | The 99th percentile value for the response time. | slbid |
status metrics
The tag of the status metrics is slbid+host+status. The following table describes the status metrics.
Metric | Unit | Description | Tag |
---|---|---|---|
pv:slbid:host:status | count | The numbers of PVs that are measured in the slbid, host, and status dimensions. | slbid+host+status |
body_bytes_sent_avg:slbid:host:status | byte | The average number of bytes in the bodies of the HTTP responses that are sent to the client. | slbid+host+status |
body_bytes_sent_sum:slbid:host:status | byte | The total number of bytes in the bodies of the HTTP responses that are sent to the client. | slbid+host+status |
request_length_avg:slbid:host:status | byte | The average length of the requests. | slbid+host+status |
request_length_sum:slbid:host:status | byte | The total length of the requests. | slbid+host+status |
request_time_avg:slbid:host:status | second | The average duration of the requests. | slbid+host+status |
request_time_p50:slbid:host:status | second | The 50th percentile value for the request durations. | slbid+host+status |
request_time_p90:slbid:host:status | second | The 90th percentile value for the request durations. | slbid+host+status |
request_time_p99:slbid:host:status | second | The 99th percentile value for the request durations. | slbid+host+status |
upstream_response_time_avg:slbid:host:status | second | The average duration of the request connections. Note The upstream_response_time field specifies the interval between the time when the CLB instance connects to the backend server and the time when the CLB instance disconnects from the backend server after the required data is received. | slbid+host+status |
upstream_response_time_p50:slbid:host:status | second | The 50th percentile value for the request connection durations. | slbid+host+status |
upstream_response_time_p90:slbid:host:status | second | The 90th percentile value for the request connection durations. | slbid+host+status |
upstream_response_time_p99:slbid:host:status | second | The 99th percentile value for the request connection durations. | slbid+host+status |
write_response_time_avg:slbid:host:status | second | The average time that is taken by the CLB proxy to send the requests to the client after the CLB proxy receives the requests from the backend server. The time is considered the response time. | slbid+host+status |
write_response_time_p50:slbid:host:status | second | The 50th percentile value for the response time. | slbid+host+status |
write_response_time_p90:slbid:host:status | second | The 90th percentile value for the response time. | slbid+host+status |
write_response_time_p99:slbid:host:status | second | The 99th percentile value for the response time. | slbid+host+status |
upstream_status metrics
The tag of the upstream_status metrics is slbid+host+status+request_method+upstream_status+url. The following table describes the upstream_status metrics.
Metric | Unit | Description | Tag |
---|---|---|---|
pv:slbid:host:status:method:upstream_status | count | The numbers of PVs that are measured in the slbid, host, status, method, url, and upstream_status dimensions. | slbid+host+status+request_method+upstream_status+url |
body_bytes_sent_avg:slbid:host:status:method:upstream_status | byte | The average number of bytes in the bodies of the HTTP responses that are sent to the client. | slbid+host+status+request_method+upstream_status+url |
body_bytes_sent_sum:slbid:host:status:method:upstream_status | byte | The total number of bytes in the bodies of the HTTP responses that are sent to the client. | slbid+host+status+request_method+upstream_status+url |
request_length_avg:slbid:host:status:method:upstream_status | byte | The average length of the requests. | slbid+host+status+request_method+upstream_status+url |
request_length_sum:slbid:host:status:method:upstream_status | byte | The total length of the requests. | slbid+host+status+request_method+upstream_status+url |
request_time_avg:slbid:host:status:method:upstream_status | second | The average duration of the requests. | slbid+host+status+request_method+upstream_status+url |
request_time_p50:slbid:host:status:method:upstream_status | second | The 50th percentile value for the request durations. | slbid+host+status+request_method+upstream_status+url |
request_time_p90:slbid:host:status:method:upstream_status | second | The 90th percentile value for the request durations. | slbid+host+status+request_method+upstream_status+url |
request_time_p99:slbid:host:status:method:upstream_status | second | The 99th percentile value for the request durations. | slbid+host+status+request_method+upstream_status+url |
upstream_response_time_avg:slbid:host:status:method:upstream_status | second | The average duration of the request connections. Note The upstream_response_time field specifies the interval between the time when the CLB instance connects to the backend server and the time when the CLB instance disconnects from the backend server after the required data is received. | slbid+host+status+request_method+upstream_status+url |
upstream_response_time_p50:slbid:host:status:method:upstream_status | second | The 50th percentile value for the request connection durations. | slbid+host+status+request_method+upstream_status+url |
upstream_response_time_p90:slbid:host:status:method:upstream_status | second | The 90th percentile value for the request connection durations. | slbid+host+status+request_method+upstream_status+url |
upstream_response_time_p99:slbid:host:status:method:upstream_status | second | The 99th percentile value for the request connection durations. | slbid+host+status+request_method+upstream_status+url |
write_response_time_avg:slbid:host:status:method:upstream_status | second | The average time that is taken by the CLB proxy to send the requests to the client after the CLB proxy receives the requests from the backend server. The time is considered the response time. | slbid+host+status+request_method+upstream_status+url |
write_response_time_p50:slbid:host:status:method:upstream_status | second | The 50th percentile value for the response time. | slbid+host+status+request_method+upstream_status+url |
write_response_time_p90:slbid:host:status:method:upstream_status | second | The 90th percentile value for the response time. | slbid+host+status+request_method+upstream_status+url |
write_response_time_p99:slbid:host:status:method:upstream_status | second | The 99th percentile value for the response time. | slbid+host+status+request_method+upstream_status+url |