Tencent Cloud Billing¶
The billing statement reflects the monthly consumption amount and resource details of users on Tencent Cloud, and serves as the proof of reconciliation between Tencent Cloud and users. Billing Introduction
For sub-account billing, please refer to: Sub-account Billing Introduction
Use the "TrueWatch Cloud Sync" series of script packages in the script market to synchronize cloud monitoring and cloud asset data to TrueWatch.
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 deploy Func yourself, refer to Self-deploying Func
Activate Script¶
Tips
- Prepare a qualified Tencent Cloud AK in advance (for simplicity, grant the global read-only permission
ReadOnlyAccess
).- To ensure accuracy, bill data is always collected for
T-1
.
Activate Script in DataFlux Func (Automata)¶
- Log in to the TrueWatch console.
- Click the 【Integration】 menu and select 【Cloud Account Management】.
- Click 【Add Cloud Account】, select 【Tencent Cloud】, and fill in the required information on the interface. If you have already configured the cloud account information, ignore this step.
- Click 【Test】, and after a successful test, click 【Save】. If the test fails, please check the relevant configuration information and test again.
- Click 【Cloud Account Management】 to see the added cloud account in the list, and click the corresponding cloud account to enter the details page.
- Click the 【Integration】 button on the cloud account details page, find
Tencent Cloud Billing
under theNot Installed
list, and click the 【Install】 button to pop up the installation interface and install it.
Manually Activate Script¶
-
Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, and search for
integration_tencentcloud_billing_by_instance
. -
Click 【Install】, then enter the corresponding parameters: Tencent Cloud AK, Tencent Cloud account name.
Note: If you are obtaining sub-account billing, IS SUB CUSTOMER should be configured as True.
-
Click 【Deploy Startup Script】, the system will automatically create a
Startup
script set and automatically configure the corresponding startup script. -
After activation, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute it once without waiting for the scheduled time. After a while, you can view 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 check the task records and logs for any anomalies.
- In TrueWatch, check if the corresponding billing information exists in 「Cloud Billing / Billing Analysis」.