AWS VPC TransitGateway
Collect AWS VPC TransitGateway metrics data
Configuration¶
Install Func¶
It is recommended to activate the TrueWatch Integration - Extensions - DataFlux Func (Automata): all prerequisites are automatically installed, please proceed with the script installation.
If you want to deploy Func manually, refer to Manual Deployment of Func
Install Script¶
Note: Please prepare the required Amazon AK in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess
)
Activate Script for Managed Version¶
- Log in to the TrueWatch console
- Click the 【Integration】 menu, select 【Cloud Account Management】
- Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, you can skip this step.
- Click 【Test】, and after the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and retest.
- Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page.
- Click the 【Integration】 button on the cloud account details page, find
AWS VPC TransitGateway
under theNot Installed
list, and click the 【Install】 button. The installation interface will pop up for installation.
Manual Activation Script¶
-
Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, and search for
integration_aws_transit_gateway
. -
Click 【Install】, and enter the corresponding parameters: AWS AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create the
Startup
script set and configure the corresponding startup script. -
After activation, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also check the corresponding task records and logs to check for any exceptions.
- In TrueWatch, check if asset information exists in 「Infrastructure - Resource Catalog」.
- In TrueWatch, check if there is corresponding monitoring data in 「Metrics」.
Metrics¶
Configure Amazon CloudWatch to collect more metrics. For details, refer to Amazon CloudWatch Metrics Details
TransitGateway metrics are under the aws_AWS/TransitGateway
Measurement, and the description column includes the description, unit, and statistics of each metric.
Metric | Description | Unit |
---|---|---|
BytesDropCountBlackhole |
The number of bytes dropped due to matching with blackhole routes | Bytes |
BytesDropCountNoRoute |
The number of bytes dropped due to no matching routes | Bytes |
BytesIn |
The number of bytes received by the transit gateway | Bytes |
BytesOut |
The number of bytes sent by the transit gateway | Bytes |
PacketsIn |
The number of packets received by the transit gateway | Count |
PacketsOut |
The number of packets sent by the transit gateway | Count |
PacketDropCountBlackhole |
The number of packets dropped due to matching with blackhole routes | Count |
PacketDropCountNoRoute |
The number of packets dropped due to no matching routes | Count |
PacketDropCountTTLExpired |
The number of packets dropped due to TTL expiration | Count |
Object¶
The collected AWS VPC TransitGateway object data structure can be viewed in 「Infrastructure - Resource Catalog」.
{
"measurement": "aws_transit_gateway",
"tags": {
"OwnerId" : "xxxx",
"RegionId" : "cn-north-1",
"State" : "available",
"TransitGatewayArn": "arn: xxx",
"TransitGatewayId" : "tgw-xxx",
"name" : "tgw-xxx"
},
"fields": {
"CreationTime": "2023-11-22T09:00:42Z",
"Description" : "Description of the transit gateway",
"Options" : "{Transit gateway options}",
"Tags" : "[Tags of the transit channel]",
"message" : "{Instance JSON data}"
}
}
Note: The fields in
tags
andfields
may change with subsequent updates.