9.4. Prometheus에 노출된 3scale APIcast 지표

3scale APIcast를 모니터링하도록 Prometheus를 설정한 후 기본적으로 표 9.2. “3scale APIcast의 Prometheus 기본 지표” 에 나열된 지표를 모니터링할 수 있습니다.

표 9.3. “3scale APIcast 배치 정책의 Prometheus 지표” 에 나열된 메트릭은 4.1.2절. “3scale Batcher” 을 사용하는 경우에만 사용할 수 있습니다.

표 9.2. 3scale APIcast의 Prometheus 기본 지표

메트릭설명유형라벨

nginx_http_connections

HTTP 연결 수

게이지

state(accepted,active,handled,reading,total,waiting,writing)

nginx_error_log

APIcast 오류

카운터

level(debug,info,notice,warn,error,crit,alert,emerg)

openresty_shdict_capacity

작업자 간에 공유되는 사전의 용량

게이지

dict(모든 사전당 하나씩)

openresty_shdict_free_space

작업자 간에 공유되는 사전의 여유 공간

게이지

dict(모든 사전당 하나씩)

nginx_metric_errors_total

메트릭을 관리하는 Lua 라이브러리의 오류 수

카운터

none

total_response_time_seconds

클라이언트에 응답을 보내는 데 필요한 시간(초)

참고: service _id 및 service_ system_name 라벨에 액세스하려면 9.2절. “Prometheus와 APIcast 통합” 에 설명된 대로 APICAST_EXTENDED_METRICS 환경 변수를 true 로 설정해야 합니다.

histogram

service_id, service_system_name

upstream_response_time_seconds

업스트림 서버의 응답 시간(초 단위)

참고: service _id 및 service_ system_name 라벨에 액세스하려면 9.2절. “Prometheus와 APIcast 통합” 에 설명된 대로 APICAST_EXTENDED_METRICS 환경 변수를 true 로 설정해야 합니다.

histogram

service_id, service_system_name

upstream_status

업스트림 서버의 HTTP 상태

참고: service _id 및 service_ system_name 라벨에 액세스하려면 9.2절. “Prometheus와 APIcast 통합” 에 설명된 대로 APICAST_EXTENDED_METRICS 환경 변수를 true 로 설정해야 합니다.

카운터

status, service_id, service_system_name

threescale_backend_calls

3scale 백엔드에 대한 요청 승인 및 보고(Apisonator)

카운터

엔드 포인트(authrep,auth,report), status(2xx,4xx,5xx)

표 9.3. 3scale APIcast 배치 정책의 Prometheus 지표

메트릭설명유형라벨

batching_policy_auths_cache_hits

3scale 배치 정책의 인증 캐시에서 적중

카운터

none

batching_policy_auths_cache_misses

3scale 배치 정책의 인증 캐시의 누락

카운터

none