NGINX Unit 사용 통계
Unit는 Control API의 GET
-only(전용) /status
섹션을 통해 사용할 수 있는 인스턴스 및 앱 전체 메트릭을 수집합니다.
Option | Description |
connections | 객체(Object); 인스턴스별(per-instance) 연결(connection) 통계를 나열합니다. |
requests | 객체(Object); 인스턴스별(per-instance) 요청(request) 통계를 나열합니다. |
applications | 객체(Object); 각 옵션 항목은 앱별(per-app) 프로세스(process) 및 요청(request) 통계를 나열합니다. |
Example:
{
"connections": {
"accepted": 1067,
"active": 13,
"idle": 4,
"closed": 1050
},
"requests": {
"total": 1307
},
"applications": {
"wp": {
"processes": {
"running": 14,
"starting": 0,
"idle": 4
},
"requests": {
"active": 10
}
}
}
}
connections 객체(object)는 다음 Unit 인스턴스 지표를 제공합니다.
Option | Description |
accepted | 정수(Integer); 인스턴스 수명(lifetime) 동안 허용된 총 연결 수입니다. |
active | 정수(Integer); 인스턴스에 대한 현재 활성 연결. |
idle | 정수(Integer); 인스턴스에 대한 현재 유휴 연결. |
closed | 정수(Integer); 인스턴스 수명 동안 닫힌 총 연결 수. |
Example:
"connections": {
"accepted": 1067,
"active": 13,
"idle": 4,
"closed": 1050
}
Note
인스턴스 연결 관리에 대한 자세한 내용은 설정을 참조하세요.
request
객체(object)는 현재 단일 인스턴스 전체 메트릭을 노출합니다.
Option | Description |
total | 정수(Integer); 인스턴스 수명 동안 총 non-control 요청(request). |
Example:
"requests": {
"total": 1307
}
applications
의 각 항목(item)은 현재 /config/applications
섹션에 나열된 앱을 설명합니다.
Option | Description |
processes | 객체(Object); 앱별 프로세스 통계를 나열합니다. |
requests | 객체(Object); /status/requests 와 유사하지만 특정 앱에 대한 데이터만 포함합니다. |
Example:
"applications": {
"wp": {
"processes": {
"running": 14,
"starting": 0,
"idle": 4
},
"requests": {
"active": 10
}
}
}
processes
객체(Object)는 다음과 같은 앱별(per-app) 메트릭을 노출합니다.
Option | Description |
running | 정수(Integer); 현재 실행 중인 앱 프로세스. |
starting | 정수(Integer); 현재 시작 앱 프로세스. |
idle | 정수(Integer); 현재 유휴 앱 프로세스. |
Example:
"processes": {
"running": 14,
"starting": 0,
"idle": 4
}
Note
앱별 프로세스 관리에 대한 자세한 내용은 프로세스 관리를 참조하세요.