Configuration Manual for "Alibaba Cloud - Site Monitoring - Metric Collection" Collector
Before reading this article, please read the following first:
Before using this collector, you must install the 'Integration Core Package' and its associated third-party dependency packages
Before collecting site monitoring metric data, you must configure the 'Alibaba Cloud - Site Monitoring Task Collection' custom object collector
This collector supports multi-threading by default (with five threads enabled). If you need to change the thread pool size, you can set the environment variable COLLECTOR_THREAD_POOL_SIZE
1. Configuration Structure
Site monitoring metric collection requires no additional configuration.
2. Metric Data Format
After data synchronization is successful, you can view the data in the 'Metrics' section of TrueWatch.
Data example as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
All metric values will be reported as float types
3. Coordination with Custom Object Collectors
When the 'Alibaba Cloud - Site Monitoring Task Collection' custom object collector runs within the same DataFlux Func, this collector will automatically attempt to match the tags.TaskId
field with the tags.name
field of custom objects.
Since it is necessary to know the custom object information before coordination can occur within cloud monitoring collectors, it is generally recommended to place the cloud monitoring collector at the end of the list, for example:
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
When a successful match occurs, fields from the matched custom object tags
will be added to the tags
of the monitoring data, thereby enabling effects such as filtering cloud monitoring metric data using instance names.
The final reported data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
5. Explanation of Cloud Monitoring API Call Counts
Currently, there is no fee description provided for this interface in the documentation.
X. Appendix
Please refer to the official Alibaba Cloud documentation: