AWS NAT Gateway

개요

AWS NAT Gatewy를 이용해 인터넷에서 먼저 인스턴스와 연결하는 것을 방지하면서 프라이빗 서브넷에 있는 인스턴스를 인터넷에 연결할 수 있습니다.

이 통합을 활성화하면 Datadog에서 모든 NAT Gateway 메트릭을 확인할 수 있습니다.

설정

설치

아직 설정하지 않은 경우 먼저 Amazon Web Services 통합을 설정하세요.

메트릭 수집

  1. AWS 통합 페이지Metric Collection 탭에서 NATGateway가 활성화되어 있는지 확인합니다.
  2. Datadog - AWS NAT Gateway 통합을 설치하세요.

로그 수집

로깅 활성화

S3 버킷이나 CloudWatch로 로그를 전송하도록 AWS NAT Gateway를 구성하세요.

참고: S3 버킷에 로깅하는 경우 amazon_nat_gateway가 _Target prefix_로 지정되어야 합니다.

Datadog에 로그 전송

  1. 아직 설정하지 않은 경우 Datadog Forwarder Lambda 함수를 설정하세요.

  2. Lambda 함수를 설치한 후 AWS 콘솔에서 AWS NAT Gateway 로그를 포함하는 S3 버킷이나 CloudWatch 로그 그룹에 수동으로 트리거를 추가하세요.

수집한 데이터

메트릭

aws.natgateway.active_connection_count
(count)
The total number of concurrent active TCP connections through the NAT gateway.
Shown as connection
aws.natgateway.active_connection_count.maximum
(count)
The maximum number of concurrent active TCP connections through the NAT gateway.
Shown as connection
aws.natgateway.active_connection_count.minimum
(count)
The minimum number of concurrent active TCP connections through the NAT gateway.
Shown as connection
aws.natgateway.bytes_in_from_destination
(gauge)
The number of bytes received by the NAT Gateway from the destination.
Shown as byte
aws.natgateway.bytes_in_from_destination.sum
(gauge)
The sum of bytes received by the NAT Gateway from the destination.
Shown as byte
aws.natgateway.bytes_in_from_source
(gauge)
The number of bytes received by the NAT Gateway from the VPC clients.
Shown as byte
aws.natgateway.bytes_in_from_source.sum
(gauge)
The sum of bytes received by the NAT Gateway from the VPC clients.
Shown as byte
aws.natgateway.bytes_out_to_destination
(gauge)
The number of bytes sent through the NAT Gateway to the destination.
Shown as byte
aws.natgateway.bytes_out_to_destination.sum
(gauge)
The sum of bytes sent through the NAT Gateway to the destination.
Shown as byte
aws.natgateway.bytes_out_to_source
(gauge)
The number of bytes sent through the NAT Gateway to the VPC clients.
Shown as byte
aws.natgateway.bytes_out_to_source.sum
(gauge)
The sum of bytes sent through the NAT Gateway to the VPC clients.
Shown as byte
aws.natgateway.connection_attempt_count
(count)
The number of connection attempts made through the NAT gateway.
Shown as attempt
aws.natgateway.connection_attempt_count.sum
(count)
The sum of connection attempts made through the NAT gateway.
Shown as attempt
aws.natgateway.connection_established_count
(count)
The number of connections established through the NAT gateway.
Shown as connection
aws.natgateway.connection_established_count.sum
(count)
The sum of connections established through the NAT gateway.
aws.natgateway.error_port_allocation
(count)
The number of times the NAT gateway could not allocate a source port.
Shown as error
aws.natgateway.error_port_allocation.sum
(count)
The sum of times the NAT gateway could not allocate a source port.
Shown as error
aws.natgateway.idle_timeout_count
(count)
The number of timeouts caused by connections going from active to idle state.
Shown as timeout
aws.natgateway.idle_timeout_count.sum
(count)
The sum of timeouts caused by connections going from active to idle state.
Shown as timeout
aws.natgateway.packets_drop_count
(count)
The number of packets dropped by the NAT Gateway.
Shown as packet
aws.natgateway.packets_drop_count.sum
(count)
The sum of packets dropped by the NAT Gateway.
Shown as packet
aws.natgateway.packets_in_from_destination
(count)
The number of packets received by the NAT Gateway from the destination.
Shown as packet
aws.natgateway.packets_in_from_destination.sum
(count)
The sum of packets received by the NAT Gateway from the destination.
Shown as packet
aws.natgateway.packets_in_from_source
(count)
The number of packets received by the NAT Gateway from the VPC clients.
Shown as packet
aws.natgateway.packets_in_from_source.sum
(count)
The sum of packets received by the NAT Gateway from the VPC clients.
Shown as packet
aws.natgateway.packets_out_to_destination
(count)
The number of packets sent through the NAT Gateway to the destination.
Shown as packet
aws.natgateway.packets_out_to_destination.sum
(count)
The sum of packets sent through the NAT Gateway to the destination.
Shown as packet
aws.natgateway.packets_out_to_source
(count)
The number of packets sent through the NAT Gateway to the VPC clients.
Shown as packet
aws.natgateway.packets_out_to_source.sum
(count)
The sum of packets sent through the NAT Gateway to the VPC clients.
Shown as packet

이벤트

AWS NAT Gateway 통합에는 이벤트가 포함되어 있지 않습니다.

서비스 점검

AWS NAT Gateway 통합에는 서비스 점검이 포함되어 있지 않습니다.

트러블슈팅

도움이 필요하신가요? Datadog 지원팀에 문의하세요.