AWS Timestream¶
The displayed Metrics of AWS Timestream include the number of system errors (internal service errors), the sum of invalid requests for the current AWS region and current AWS account, the time and sample count of successful requests, the amount of data stored in memory, and the amount of data stored in magnetic storage, etc.
Configuration¶
Install Func¶
It is recommended to activate the TrueWatch integration - extension - DataFlux Func (Automata): all prerequisites are automatically installed, please continue with the script installation.
If deploying Func manually, refer to Manual Func Deployment
Install Script¶
Note: Please prepare the required Amazon AK in advance (for simplicity, you can directly grant global read-only permissions
ReadOnlyAccess
)
Managed Version Activation Script¶
- 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】, if the test is successful, click on 【Save】. If the test fails, please check if the relevant configuration information is correct and retest
- In the 【Cloud Account Management】 list, you can see the added cloud account. Click on the corresponding cloud account to enter the details page
- Click on the 【Integration】 button on the cloud account details page, find
AWS Timestream
under theNot Installed
list, click on the 【Install】 button, and the installation interface will pop up for installation.
Manual Activation Script¶
-
Log in to the Func console, click on 【Script Market】, enter the TrueWatch script market, and search for
integration_aws_timestream
-
After clicking on 【Install】, input 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 「Management / Automatic Trigger Configuration」. Click on 【Execute】 to immediately execute once 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 see if there are any exceptions
- In TrueWatch, check if asset information exists in 「Infrastructure / Custom」
- In TrueWatch, check if there are corresponding monitoring data in 「Metrics」
Metrics¶
After configuring Amazon CloudWatch, the default Measurement is as follows. More Metrics can be collected through configuration:
Amazon CloudWatch AWS Timestream Metrics Details
Metric Name | Description | Unit | Valid Statistics |
---|---|---|---|
SystemErrors |
Requests to Timestream that generate system errors during the specified period. System errors usually indicate internal service errors. | Count | Sum, SampleCount (displayed as sample count in Amazon Timestream console) |
UserErrors |
Requests to Timestream that generate InvalidRequest errors during the specified period. InvalidRequest usually indicates client errors, such as invalid parameter combinations, attempts to update non-existent tables, or incorrect request signatures. UserErrors represent the sum of invalid requests for the current AWS region and current AWS account. | Count | Sum, SampleCount (displayed as sample count in Amazon Timestream console) |
SuccessfulRequestLatency |
Successful requests to Timestream during the specified period. SuccessfulRequestLatency can provide two types of information: the running time of successful requests (Minimum, Maximum, Sum, or Average). The number of successful requests (SampleCount). SuccessfulRequestLatency only reflects activities within Timestream, not including network latency or client activities. | Milliseconds | Average, Minimum, Maximum, Sum, SampleCount (displayed as sample count in Amazon Timestream console) |
MemoryCumulativeBytesMetered |
The amount of data stored in memory, in bytes. | Bytes | Average |
MagneticCumulativeBytesMetered |
The amount of data stored in magnetic storage, in bytes. | Bytes | Average |