Introduction

Network address translation (NAT) gateways are used to enable instances in a private subnet to connect to the internet (for example, for software updates) or other AWS services but prevent the internet from initiating a connection with those instances.

A NAT device forwards traffic from the instances in the private subnet to the internet or other AWS services, and then sends the response back to the instances.

When traffic goes to the internet, the source IPv4 address is replaced with the NAT device’s address. Similarly, when the response traffic goes to those instances, the NAT device translates the address back to those instances’ private IPv4 addresses.

Setup

To set up the OpsRamp AWS integration and discover the AWS service, go to AWS Integration Discovery Profile and select Nat Gateway.

Metrics

OpsRamp MetricMetric Display NameUnitAggregation TypeDescription
aws_natgateway_PacketsInFromSourcePackets In From SourceCountAverageNumber of packets received by the NAT gateway from clients in the VPC.
aws_natgateway_PacketsInFromDestinationPackets In From DestinationCountAverageNumber of packets received by the NAT gateway from the destination.
aws_natgateway_BytesInFromSourceBytes In From SourceBytesAverageNumber of bytes received by the NAT gateway from clients in the VPC.
aws_natgateway_BytesInFromDestinationBytes In From DestinationBytesAverageNumber of bytes received by the NAT gateway from the destination.
aws_natgateway_PacketsDropCountPackets Drop CountCountAverageNumber of packets dropped by the NAT gateway.
aws_natgateway_PacketsOutToDestinationPackets Out To DestinationCountAverageNumber of packets sent out through the NAT gateway to the destination.
aws_natgateway_PacketsOutToSourcePackets Out To SourceCountAverageNumber of packets sent through the NAT gateway to the clients in the VPC.
aws_natgateway_BytesOutToSourceBytes Out To SourceBytesAverageNumber of bytes sent through the NAT gateway to the clients in the VPC.
aws_natgateway_BytesOutToDestinationBytes Out To DestinationBytesAverageNumber of bytes sent out through the NAT gateway to the destination.
aws_natgateway_ConnectionEstablishedCountConnection Established CountCountAverageNumber of connections established through the NAT gateway.
aws_natgateway_ConnectionAttemptCountConnection Attempt CountCountAverageNumber of connection attempts made through the NAT gateway.
aws_natgateway_ActiveConnectionCountActive Connection CountCountAverageNumber of connection attempts made through the NAT gateway.
aws_natgateway_ErrorPortAllocationError Port AllocationCountAverageNumber of times the NAT gateway could not allocate a source port.

Event support

CloudTrail event support

  • Supported (CreateNatGateway, DeleteNatGateway)
  • Configurable in OpsRamp AWS Integration Discovery Profile.

CloudWatch alarm support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

External reference