HUAWEI CLOUD GaussDB-Cassandra¶
Use the「Guance Synchronization」series script package in the script market to synchronize data from cloud monitoring cloud assets to the observation cloud.
ConfiG¶
Install Func¶
Recommend opening 「Integrations - Extension - DataFlux Func (Automate)」: All preconditions are installed automatically, Please continue with the script installation.
If you deploy Func yourself, Refer to Self-Deployment of Func
Installation script¶
Tip:Please prepare HUAWEI CLOUD AK that meets the requirements in advance(For simplicity's sake, You can directly grant the global read-only permission
ReadOnlyAccess
)
To synchronize the monitoring data of HUAWEI CLOUD GaussDB-Cassandra cloud resources, we install the corresponding collection script:「Guance Integration(HUAWEI CLOUD GaussDB-Cassandra Collect)」(ID:guance_huaweicloud_gaussdb_cassandra
)
Click 【Install】 and enter the corresponding parameters: HUAWEI CLOUD AK, HUAWEI CLOUD account name.
tap【Deploy startup Script】, The system automatically creates Startup
script sets, And automatically configure the corresponding startup script.
After the script is installed, Find the script in「Development」in Func「Guance Integration(HUAWEI CLOUD-GaussDB-CassandraCollect)」, Expand to modify this script, find collector_configs
andmonitor_configs
Edit the content inregion_projects
, Change the locale and Project ID to the actual locale and Project ID, Click Save Publish again.
In addition, the corresponding automatic trigger configuration is displayed in「Management / Crontab Config」. tap【Run】, It can be executed immediately once, without waiting for a periodic time. After a while, you can view task execution records and corresponding logs.
We collected some configurations by default, as described in the Metrics column Configure custom cloud object metrics
Verify¶
- In「Management / Crontab Config」check whether the automatic triggering configuration exists for the corresponding task,In addition, you can view task records and logs to check whether exceptions exist
- On the observation cloud platform, click 「Infrastructure / Custom」 to check whether asset information exists
- On the observation cloud platform, press 「Metrics」 to check whether monitoring data exists
Metric¶
Configure HUAWEI CLOUD - cloud monitoring. The default metric set is as follows. You can collect more metrics by configuring them HUAWEI CLOUD Monitor Metrics Details
Metric ID | Metric Name | Description | Value Range | Monitored Object | Monitoring Period (Raw Data) |
---|---|---|---|---|---|
cassandra001_cpu_usage |
CPU Usage | CPU usage of an instance Unit: Percent | 0~100 % | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra002_mem_usage |
Memory Usage | Memory usage of the instance Unit: Percent | 0~100 % | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra003_bytes_out |
Network Output Throughput | Outgoing traffic in bytes per second Unit: byte/s | ≥ 0 kb/s | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra004_bytes_in |
Network Input Throughput | Incoming traffic in bytes per second Unit: byte/s | ≥ 0 kb/s | GaussDB(for Cassandra) instance nodes | 1 minute |
nosql005_disk_usage |
Storage Space Usage | Storage space usage of the monitored object Unit: Percent | 0~100 % | GaussDB(for Cassandra) instance nodes | 1 minute |
nosql006_disk_total_size |
Total Storage Space | Total storage space of the monitored object Unit: GB | ≥ 0 GB | GaussDB(for Cassandra) instance nodes | 1 minute |
nosql007_disk_used_size |
Used Storage Space | Used storage space of the monitored object Unit: GB | ≥ 0 GB | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra014_connections |
Active Node Connections | Total number of connections attempting to connect to Cassandra instance nodes Unit: count | ≥ 0 Counts | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra015_read_latency |
Average Read Latency | Average amount of time consumed by read requests Unit: ms | ≥ 0 ms | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra016_write_latency |
Average Write Latency | Average amount of time consumed by write requests Unit: ms | ≥ 0 ms | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra037_pending_write |
Suspended Write Tasks | Number of write tasks in waiting status Unit: count | ≥ 0 Counts | GaussDB(for Cassandra) instance nodes | 1 minute |
cassandra038_pending_read |
Suspended Read Tasks | Number of read tasks in waiting status Unit: count | ≥ 0 Counts | GaussDB(for Cassandra) instance nodes | 1 minute |
Object¶
The collected HUAWEI CLOUD GaussDB-Cassandra object data structure can see the object data from 「Infrastructure-Custom」
{
"measurement": "huaweicloud_gaussdb_nosql",
"tags": {
"RegionId" : "cn-north-4",
"db_user_name" : "rwuser",
"engine" : "rocksDB",
"instance_id" : "1236a915462940xxxxxx879882200in02",
"instance_name" : "nosql-efa7",
"name" : "1236a915462940xxxxxx879882200in02",
"pay_mode" : "0",
"port" : "8635",
"project_id" : "15c6ce1c12dxxxx0xxxx2076643ac2b9",
"security_group_id" : "7aa51dbf-xxxx-xxxx-xxxx-dad3c4828b58",
"status" : "normal",
"subnet_id" : "f1df08c5-xxxx-xxxx-xxxx-de435a51007b",
"vpc_id" : "674e9b42-xxxx-xxxx-xxxx-5abcc565b961"
},
"fields": {
"actions" : "[]",
"create_time" : "2023-08-01T14:17:40+0800",
"update_time" : "2023-08-01T14:17:42+0800",
"backup_strategy" : "{Instance JSON data}",
"datastore" : "{Instance JSON data}",
"groups" : "[{Instance JSON data}]",
"time_zone" : "",
"message" : "{Instance JSON data}"
}
}
notice:
tags
,fields
The fields in this section may change with subsequent updatesTips 1:
tags.name
The value is the instance ID for unique identificationTips 2:The following fields are JSON serialized strings
fields.message
fields.backup_strategy
fields.datastore
fields.groups
fields.actions