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.

MetricDescription
pvThe number of page views (PVs).
body_bytes_sent_avgThe average number of bytes in the bodies of the HTTP responses that are sent to the client.
body_bytes_sent_sumThe total number of bytes in the bodies of the HTTP responses that are sent to the client.
request_length_avgThe average length of the requests.
request_length_sumThe total length of the requests.
request_time_avgThe average duration of the requests.
request_time_p50The 50th percentile value for the request durations.
request_time_p90The 90th percentile value for the request durations.
request_time_p99The 99th percentile value for the request durations.
upstream_response_time_avgThe 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_p50The 50th percentile value for the request connection durations.
upstream_response_time_p90The 90th percentile value for the request connection durations.
upstream_response_time_p99The 99th percentile value for the request connection durations.
write_response_time_avgThe 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_p50The 50th percentile value for the response time.
write_response_time_p90The 90th percentile value for the response time.
write_response_time_p99The 99th percentile value for the response time.

slbid metrics

The tag of the slbid metrics is slbid. The following table describes the slbid metrics.

MetricUnitDescriptionTag
pv:slbidcountThe number of PVs for the CLB instance.slbid
body_bytes_sent_avg:slbidbyteThe average number of bytes in the bodies of the HTTP responses that are sent to the client.slbid
body_bytes_sent_sum:slbidbyteThe total number of bytes in the bodies of the HTTP responses that are sent to the client.slbid
request_length_avg:slbidbyteThe average length of the requests.slbid
request_length_sum:slbidbyteThe total length of the requests.slbid
request_time_avg:slbidsecondThe average duration of the requests.slbid
request_time_p50:slbidsecondThe 50th percentile value for the request durations.slbid
request_time_p90:slbidsecondThe 90th percentile value for the request durations.slbid
request_time_p99:slbidsecondThe 99th percentile value for the request durations.slbid
upstream_response_time_avg:slbidsecondThe 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:slbidsecondThe 50th percentile value for the request connection durations.slbid
upstream_response_time_p90:slbidsecondThe 90th percentile value for the request connection durations.slbid
upstream_response_time_p99:slbidsecondThe 99th percentile value for the request connection durations.slbid
write_response_time_avg:slbidsecondThe 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:slbidsecondThe 50th percentile value for the response time.slbid
write_response_time_p90:slbidsecondThe 90th percentile value for the response time.slbid
write_response_time_p99:slbidsecondThe 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.

MetricUnitDescriptionTag
pv:slbid:host:statuscountThe numbers of PVs that are measured in the slbid, host, and status dimensions.slbid+host+status
body_bytes_sent_avg:slbid:host:statusbyteThe 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:statusbyteThe 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:statusbyteThe average length of the requests.slbid+host+status
request_length_sum:slbid:host:statusbyteThe total length of the requests.slbid+host+status
request_time_avg:slbid:host:statussecondThe average duration of the requests.slbid+host+status
request_time_p50:slbid:host:statussecondThe 50th percentile value for the request durations.slbid+host+status
request_time_p90:slbid:host:statussecondThe 90th percentile value for the request durations.slbid+host+status
request_time_p99:slbid:host:statussecondThe 99th percentile value for the request durations.slbid+host+status
upstream_response_time_avg:slbid:host:statussecondThe 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:statussecondThe 50th percentile value for the request connection durations.slbid+host+status
upstream_response_time_p90:slbid:host:statussecondThe 90th percentile value for the request connection durations.slbid+host+status
upstream_response_time_p99:slbid:host:statussecondThe 99th percentile value for the request connection durations.slbid+host+status
write_response_time_avg:slbid:host:statussecondThe 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:statussecondThe 50th percentile value for the response time.slbid+host+status
write_response_time_p90:slbid:host:statussecondThe 90th percentile value for the response time.slbid+host+status
write_response_time_p99:slbid:host:statussecondThe 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.

MetricUnitDescriptionTag
pv:slbid:host:status:method:upstream_statuscountThe 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_statusbyteThe 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_statusbyteThe 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_statusbyteThe average length of the requests.slbid+host+status+request_method+upstream_status+url
request_length_sum:slbid:host:status:method:upstream_statusbyteThe total length of the requests.slbid+host+status+request_method+upstream_status+url
request_time_avg:slbid:host:status:method:upstream_statussecondThe average duration of the requests.slbid+host+status+request_method+upstream_status+url
request_time_p50:slbid:host:status:method:upstream_statussecondThe 50th percentile value for the request durations.slbid+host+status+request_method+upstream_status+url
request_time_p90:slbid:host:status:method:upstream_statussecondThe 90th percentile value for the request durations.slbid+host+status+request_method+upstream_status+url
request_time_p99:slbid:host:status:method:upstream_statussecondThe 99th percentile value for the request durations.slbid+host+status+request_method+upstream_status+url
upstream_response_time_avg:slbid:host:status:method:upstream_statussecondThe 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_statussecondThe 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_statussecondThe 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_statussecondThe 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_statussecondThe 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_statussecondThe 50th percentile value for the response time.slbid+host+status+request_method+upstream_status+url
write_response_time_p90:slbid:host:status:method:upstream_statussecond 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_statussecond The 99th percentile value for the response time.slbid+host+status+request_method+upstream_status+url