HTTP 요청/응답

m2_http_frontend

See also

functions.network.http.frontend 컴포넌트 메트릭을 제공한다. frontend 는 M2가 클라이언트에게 서비스하는 구간을 의미한다.

Note

src label의 의미는 다음과 같다.

  • in internal 트래픽은 현재 노드로 인입된 트래픽이 정상적으로 처리된 상태를 의미한다.

  • ex external 트래픽은 다른 노드로 인입된 트래픽이 장애등으로 인해 현재 노드로 위임된 상태를 의미한다.

metric

type

label

description

m2_http_frontend_status

gauge

vhost

가상호스트 활성화 상태 ( 1 = 활성화, 0 = 비활성화)

m2_http_frontend_receive_size_bytes

counter

vhost

src

클라이언트로부터 수신한 전체크기

in , ex

m2_http_frontend_send_size_bytes

counter

vhost

src

클라이언트에게 전송한 용량

in , ex

m2_http_frontend_sessions_establish

gauge

vhost

src

클라이언트 연결 세션수

in , ex

m2_http_frontend_tx_active

gauge

vhost

src

진행 중인 HTTP 트랜잭션

in , ex

m2_http_frontend_tx_abort_total

counter

vhost

src

중단된 HTTP 트랜잭션

in , ex

m2_http_frontend_tx_complete_total

counter

vhost

src

완료된 HTTP 트랜잭션

in , ex

m2_http_frontend_tx_ttfb_seconds

histogram

vhost

src

{buckets}

클라이언트 응답 시간 (Time To First Bytes)

in , ex

0.001 , 0.005 , 0.01 , 0.05 , 0.1 , 0.5 , 1 , 5 , 10 , +Inf

m2_http_frontend_tx_complete_seconds

histogram

vhost

src

{buckets}

클라이언트 응답 완료 시간

in , ex

0.001 , 0.005 , 0.01 , 0.05 , 0.1 , 0.5 , 1 , 5 , 10 , +Inf

m2_http_frontend_requests_total

counter

vhost

src

클라이언트 요청 수

in , ex

m2_http_frontend_requests_deny_total

counter

vhost

src

거부된 클라이언트 요청 수

in , ex

m2_http_frontend_requests_bypass_total

counter

vhost

src

바이패스된 클라이언트 요청 수

in , ex

m2_http_frontend_requests_urlrewrite_total

counter

vhost

src

URL Rewrite된 클라이언트 요청 수

in , ex

m2_http_frontend_requests_header_size_bytes

counter

vhost

src

클라이언트 요청헤더 크기

in , ex

m2_http_frontend_responses_total

counter

vhost

src

code

클라이언트 응답 수

in , ex

  • 0xx 응답없이 연결종료

  • 1xx

  • 2xx

  • 3xx

  • 4xx

  • 5xx

m2_http_frontend_responses_header_size_bytes

counter

vhost

src

클라이언트 응답헤더 크기

in , ex

m2_http_frontend_responses_cl_size_bytes

histogram

vhost

src

{buckets}

클라이언트에게 응답한 Contents-Legnth 헤더 값 분포. Transfer-Encoding: chunked 인 경우 Contents-Legnth 헤더는 없지만 m2_http_frontend_responses_object_size_bytes 와 동일한 값으로 집계된다.

in , ex

100 , 1000 , 10000 , 100000 , 1e+06 , 1e+07 , 1e+08 , 1e+09 , 1e+10 , +Inf

m2_http_frontend_responses_object_size_bytes

histogram

vhost

src

{buckets}

접근된 콘텐츠 객체 크기 분포

in , ex

100 , 1000 , 10000 , 100000 , 1e+06 , 1e+07 , 1e+08 , 1e+09 , 1e+10 , +Inf

m2_http_frontend_fallbacks_in_total

counter

vhost

src

fallbacks 을 통해 이 가상호스트로 유입된 요청수

in , ex

m2_http_frontend_fallbacks_out_total

counter

vhost

src

"phase": "frontend" 조건으로 fallbacks 된 요청수

in , ex

m2_http_frontend_contenttype

contentType 설정이 활성화되어 있다면 HTTP 응답시점에 Content-Type 헤더를 참조하여 메트릭을 집계한다.

metric

type

label

description

m2_http_frontend_contenttype_total

counter

vhost

type

콘텐트 타입별 응답 수

콘텐트 타입

m2_http_frontend_contenttype_size_bytes_total

counter

vhost

type

콘텐트 타입별 전송량 (헤더 + 콘텐츠)

콘텐트 타입

m2_http_frontend_os

userAgent .os 설정이 활성화되어 있다면 HTTP 응답시점에 User-Agent 헤더를 참조하여 메트릭을 집계한다.

metric

type

label

description

m2_http_frontend_os_total

counter

vhost

type

OS 별 응답 수

OS 종류

m2_http_frontend_device

userAgent .device 설정이 활성화되어 있다면 HTTP 응답시점에 User-Agent 헤더를 참조하여 메트릭을 집계한다.

metric

type

label

description

m2_http_frontend_device_total

counter

vhost

type

디바이스 별 응답 수

디바이스 종류

m2_http_backend

See also

  • functions.network.http.backend 컴포넌트 메트릭을 제공한다.

  • backend 는 M2가 원본과 통신하는 구간을 의미한다.

metric

type

label

description

m2_http_backend_receive_size_bytes

counter

vhost

원본으로부터 수신한 전체크기

m2_http_backend_send_size_bytes

counter

vhost

원본으로 전송한 용량

m2_http_backend_sessions_establish

gauge

vhost

원본 연결 세션수

m2_http_backend_tx_active

gauge

vhost

진행 중인 HTTP 트랜잭션

m2_http_backend_tx_abort_total

counter

vhost

중단된 HTTP 트랜잭션

m2_http_backend_tx_complete_total

counter

vhost

완료된 HTTP 트랜잭션

m2_http_backend_tx_ttfb_seconds

histogram

vhost

{buckets}

원본 응답 시간 (Time To First Bytes)

0.001 , 0.005 , 0.01 , 0.05 , 0.1 , 0.5 , 1 , 5 , 10 , +Inf

m2_http_backend_tx_complete_seconds

histogram

vhost

{buckets}

원본 응답 완료 시간

0.001 , 0.005 , 0.01 , 0.05 , 0.1 , 0.5 , 1 , 5 , 10 , +Inf

m2_http_backend_requests_total

counter

vhost

원본 요청 수

m2_http_backend_requests_urlrewrite_total

counter

vhost

URL Rewrite된 원본 요청 수

m2_http_backend_requests_header_size_bytes

counter

vhost

원본 요청헤더 크기

m2_http_backend_responses_total

counter

vhost

code

원본 응답 수

  • 0xx 응답없이 연결종료

  • 1xx

  • 2xx

  • 3xx

  • 4xx

  • 5xx

m2_http_backend_responses_header_size_bytes

counter

vhost

원본 응답헤더 크기

m2_http_backend_responses_cl_size_bytes

histogram

vhost

{buckets}

원본에서 수신된 Contents-Length 헤더 값 분포. Transfer-Encoding: chunked 인 경우 Contents-Legnth 헤더는 없지만 m2_http_backend_responses_object_size_bytes 와 동일한 값으로 집계된다.

100 , 1000 , 10000 , 100000 , 1e+06 , 1e+07 , 1e+08 , 1e+09 , 1e+10 , +Inf

m2_http_backend_responses_object_size_bytes

histogram

vhost

{buckets}

접근된 원본 콘텐츠 객체 크기 분포

100 , 1000 , 10000 , 100000 , 1e+06 , 1e+07 , 1e+08 , 1e+09 , 1e+10 , +Inf

m2_http_backend_fallbacks_out_total

counter

vhost

"phase": "backend" 조건으로 fallbacks 된 요청수