CloudWatch로 EC2 Fleet 또는 Spot Fleet 모니터링
CloudWatch로 EC2 Fleet 또는 Spot Fleet 모니터링 (Monitor your EC2 Fleet or Spot Fleet using CloudWatch)
이 섹션에 설명된 Amazon CloudWatch 지표를 사용해 EC2 Fleet이나 Spot Fleet을 모니터링할 수 있어요.
출처: 문서
본문
중요 정확성을 보장하려면 이러한 지표를 사용할 때 자세한 모니터링(detailed monitoring)을 활성화할 것을 권장해요. 자세한 내용은 EC2 인스턴스의 자세한 모니터링 관리를 참고하세요.
CloudWatch 사용에 대한 자세한 내용은 CloudWatch로 인스턴스 모니터링하기를 참고하세요.
EC2 Fleet 및 Spot Fleet 지표 (EC2 Fleet and Spot Fleet metrics)
AWS/EC2Spot 네임스페이스에는 플릿에 대한 다음 지표와 함께 플릿의 Spot 인스턴스에 대한 CloudWatch 지표가 포함돼요. 자세한 내용은 인스턴스 지표를 참고하세요.
| Metric | Description |
|---|---|
| AvailableInstancePoolsCount | The Spot capacity pools specified in the fleet request. Units: Count |
| BidsSubmittedForCapacity | The capacity for which Amazon EC2 has submitted fleet requests. Units: Count |
| EligibleInstancePoolCount | The Spot capacity pools specified in the fleet request where Amazon EC2 can fulfill requests. Amazon EC2 does not fulfill requests in pools where the maximum price you're willing to pay for Spot Instances is less than the Spot price or the Spot price is greater than the price for On-Demand Instances. Units: Count |
| FulfilledCapacity | The capacity that Amazon EC2 has fulfilled. Units: Count |
| MaxPercentCapacityAllocation | The maximum value of PercentCapacityAllocation across all fleet pools specified in the fleet request. Units: Percent |
| PendingCapacity | The difference between TargetCapacity and FulfilledCapacity. Units: Count |
| PercentCapacityAllocation | The capacity allocated for the Spot capacity pool for the specified dimensions. To get the maximum value recorded across all Spot capacity pools, use MaxPercentCapacityAllocation. Units: Percent |
| TargetCapacity | The target capacity of the fleet request. Units: Count |
| TerminatingCapacity | The capacity that is being terminated because the provisioned capacity is greater than the target capacity. Units: Count |
지표의 측정 단위가 Count이면 가장 유용한 통계는 Average예요.
EC2 Fleet 및 Spot Fleet 차원 (EC2 Fleet and Spot Fleet dimensions)
플릿의 데이터를 필터링하려면 다음 차원을 사용해요.
| Dimensions | Description |
|---|---|
| AvailabilityZone | Filter the data by Availability Zone. |
| FleetRequestId | Filter the data by fleet request. |
| InstanceType | Filter the data by instance type. |
EC2 Fleet 또는 Spot Fleet의 CloudWatch 지표 보기 (View the CloudWatch metrics for your EC2 Fleet or Spot Fleet)
Amazon CloudWatch 콘솔을 사용해 플릿의 CloudWatch 지표를 볼 수 있어요. 이러한 지표는 모니터링 그래프로 표시돼요. 이 그래프는 플릿이 활성 상태이면 데이터 포인트를 표시해요.
지표는 먼저 네임스페이스별로, 그다음 각 네임스페이스 내의 다양한 차원 조합별로 그룹화돼요. 예를 들어 플릿 요청 ID, 인스턴스 유형, 가용 영역별로 모든 플릿 지표 또는 플릿 지표 그룹을 볼 수 있어요.
플릿 지표 보기
- CloudWatch 콘솔(https://console.aws.amazon.com/cloudwatch/)을 엽니다.
- 탐색 창에서 Metrics를 펼치고 All metrics를 선택해요.
- EC2 Spot 네임스페이스를 선택해요. 참고 EC2 Spot 네임스페이스가 표시되지 않으면 두 가지 이유가 있어요. 리전에서 EC2 Fleet이나 Spot Fleet을 사용한 적이 없거나 — 사용 중인 AWS 서비스만 Amazon CloudWatch로 지표를 보내니까요 — 또는 리전에서 EC2 Fleet이나 Spot Fleet을 사용했지만 지난 2주 동안 사용하지 않아서 네임스페이스가 나타나지 않을 수 있어요.
- 지표를 차원별로 필터링하려면 다음 중 하나를 선택해요.
- Fleet Request Metrics – 플릿 요청별로 그룹화
- By Availability Zone – 플릿 요청과 가용 영역별로 그룹화
- By Instance Type – 플릿 요청과 인스턴스 유형별로 그룹화
- By Availability Zone/Instance Type – 플릿 요청, 가용 영역, 인스턴스 유형별로 그룹화
- 지표에 대한 데이터를 보려면 지표 옆의 확인란을 선택해요.