AWS Auto Scaling¶
AWS Auto Scaling, including instances, capacity units, warm pools, etc.
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.
For self-deploying Func, refer to Self-deploying Func
Install Script¶
Note: Please prepare the required Amazon AK in advance (for simplicity, you can directly grant global read-only permission
ReadOnlyAccess
)
Automata Script Activation¶
- Log in to the TrueWatch console
- Click on the 【Integration】 menu, select 【Cloud Account Management】
- Click on 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step.
- Click on 【Test】, after a successful test, click on 【Save】. If the test fails, please check the relevant configuration information and test again.
- Click on 【Cloud Account Management】, you can see the added cloud account in the list. Click on the corresponding cloud account to enter the details page.
- Click on the 【Integration】 button on the cloud account details page, find
AWS Auto Scaling
under theNot Installed
list, and click on the 【Install】 button. The installation interface will pop up for installation.
Manual Script Activation¶
-
Log in to the Func console, click on 【Script Market】, enter the TrueWatch script market, and search for:
integration_aws_auto_scaling
-
Click on 【Install】, then enter the corresponding parameters: AWS AK ID, AK Secret, and account name.
-
Click on 【Deploy Startup Script】, the system will automatically create the
Startup
script set and automatically configure the corresponding startup script. -
After activation, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click on 【Execute】 to immediately execute it once without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
Verification¶
- In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and check the corresponding task records and logs for any exceptions.
- In TrueWatch, check if asset information exists in 「Infrastructure / Custom」.
- In TrueWatch, check if there is corresponding monitoring data in 「Metrics」.
Metrics¶
After configuring AWS Auto Scaling, the default Measurement is as follows. More Metrics can be collected through configuration AWS Cloud Monitoring Metrics Details
Metric | Description |
---|---|
GroupMinSize |
The minimum size of the Auto Scaling group |
GroupMaxSize |
The maximum size of the Auto Scaling group |
GroupDesiredCapacity |
The number of instances that the Auto Scaling group attempts to maintain |
GroupInServiceInstances |
The number of instances running as part of the Auto Scaling group. This metric does not include instances in the pending or terminating state |
GroupPendingInstances |
The number of instances in the pending state. Pending instances are not yet available. This metric does not include instances in the available or terminating state |
GroupStandbyInstances |
The number of instances in the Standby state. Instances in this state are still running but are not effectively used |
GroupTerminatingInstances |
The number of instances in the process of terminating. This metric does not include instances in the available or pending state |
GroupTotalInstances |
The total number of instances in the Auto Scaling group. This metric is used to identify the number of instances in the available, pending, and terminating states |
GroupTotalCapacity |
The total number of capacity units in the Auto Scaling group |
GroupPendingCapacity |
The number of pending capacity units |
GroupStandbyCapacity |
The number of capacity units in the Standby state |
GroupTerminatingCapacity |
The number of capacity units in the process of terminating |
GroupTotalCapacity |
The total number of capacity units in the Auto Scaling group |
WarmPoolMinSize |
The minimum size of the warm pool |
GroupAndWarmPoolDesiredCapacity |
The desired capacity of the Auto Scaling group and warm pool combined |
WarmPoolPendingCapacity |
The number of pending capacity units in the warm pool. This metric does not include instances in the running, pending, or terminating state |
WarmPoolTerminatingCapacity |
The number of capacity units in the process of terminating in the warm pool. This metric does not include instances in the running, stopped, or pending state |
WarmPoolWarmedCapacity |
The number of capacity units that can enter the Auto Scaling group during scale-out. This metric does not include instances in the pending or terminating state |
WarmPoolTotalCapacity |
The total capacity of the warm pool, including instances in the running, stopped, pending, or terminating state |
GroupAndWarmPoolDesiredCapacity |
The desired capacity of the Auto Scaling group and warm pool combined |
GroupAndWarmPoolTotalCapacity |
The total capacity of the Auto Scaling group and warm pool combined. This includes instances in the running, stopped, pending, terminating, or in-service state |