Skip to content

Alibaba Cloud RDS MariaDB

The displayed Metrics for Alibaba Cloud RDS MariaDB include response time, concurrent connections, QPS, and TPS, etc.

Configuration

Install Func

It is recommended to enable the TrueWatch integration - extension - DataFlux Func (Automata): all prerequisites will be automatically installed. Please continue with script installation.

If you deploy Func by yourself, refer to Self-deployed Func

It is recommended to deploy the GSE version.

Installation Script

Note: Please prepare the required Alibaba Cloud AK in advance (for simplicity, you can directly grant global read-only permission ReadOnlyAccess).

To synchronize the monitoring data of RDS cloud resources, we install the corresponding collection script: "TrueWatch Integration (Alibaba Cloud - RDS Collection)" (ID: truewatch_aliyun_rds)

After clicking [Install], enter the corresponding parameters: Alibaba Cloud AK, Alibaba Cloud account name.

Click [Deploy Startup Script], the system will automatically create a Startup script set and automatically configure the corresponding startup script.

In addition, you can see the corresponding automatic trigger configuration in "Manage / Automatic Trigger Configuration". Click [Execute] to run it immediately without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.

We collect some configurations by default, see the Metrics section for details.

Configure custom cloud object Metrics

Verification

  1. In "Manage / Automatic Trigger Configuration", confirm whether the corresponding automatic trigger configuration exists for the task, and check the task records and logs for any abnormalities.
  2. On the TrueWatch platform, check if there is asset information under "Infrastructure / Custom".
  3. On the TrueWatch platform, check if there are corresponding monitoring data under "Metrics".

Metrics

After configuring Alibaba Cloud - Cloud Monitoring, the default Measurement set is as follows. You can collect more Metrics through configuration. Details of Alibaba Cloud Cloud Monitoring Metrics

Metric Id Metric Name Dimensions Statistics Unit
ConnectionUsage Connection usage rate userId,instanceId Average,Minimum,Maximum %
CpuUsage CPU usage rate userId,instanceId Average,Minimum,Maximum %
DiskUsage Disk usage rate userId,instanceId Average,Minimum,Maximum %
IOPSUsage IOPS usage rate userId,instanceId Average,Minimum,Maximum %
MemoryUsage Memory usage rate userId,instanceId Average,Minimum,Maximum %
MySQL_ComDelete MySQL Delete per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ComInsert MySQL Insert per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ComInsertSelect MySQL InsertSelect per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ComReplace MySQL Replace per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ComReplaceSelect MySQL ReplaceSelect per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ComSelect MySQL Select per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ComUpdate MySQL Update per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_DataDiskSize MySQL_data disk usage userId,instanceId Average,Maximum,Minimum Megabytes
MySQL_IbufDirtyRatio MySQL_BP dirty page percentage userId,instanceId Average,Maximum,Minimum %
MySQL_IbufReadHit MySQL_BP read hit rate userId,instanceId Average,Maximum,Minimum %
MySQL_IbufRequestR MySQL logical reads per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_IbufRequestW MySQL logical writes per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_IbufUseRatio MySQL_BP utilization userId,instanceId Average,Maximum,Minimum %
MySQL_InnoDBDataRead MySQL_InnoDB data read per second userId,instanceId Average,Maximum,Minimum Kbyte
MySQL_InnoDBDataWritten MySQL_InnoDB data written per second userId,instanceId Average,Maximum,Minimum Kbyte
MySQL_InnoDBLogFsync MySQL_InnoDB log fsyncs per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InnoDBLogWriteRequests MySQL_InnoDB log write requests per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InnoDBLogWrites MySQL_InnoDB physical log writes per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InnoDBRowDelete MySQL_InnoDB rows deleted per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InnoDBRowInsert MySQL_InnoDB rows inserted per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InnoDBRowRead MySQL_InnoDB rows read per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InnoDBRowUpdate MySQL_InnoDB rows updated per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_InstanceDiskSize MySQL_instance disk usage userId,instanceId Average,Maximum,Minimum Megabytes
MySQL_LogDiskSize MySQL_log disk usage userId,instanceId Average,Maximum,Minimum Megabytes
MySQL_NetworkInNew MySQL network inbound bandwidth userId,instanceId Average,Minimum,Maximum bits/s
MySQL_NetworkOutNew MySQL network outbound bandwidth userId,instanceId Average,Minimum,Maximum bits/s
MySQL_OtherDiskSize MySQL_other disk usage userId,instanceId Average,Maximum,Minimum Megabytes
MySQL_QPS MySQL queries per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_SlowQueries MySQL slow queries per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_TPS MySQL transactions per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_TempDiskTableCreates MySQL temporary tables created per second userId,instanceId Average,Maximum,Minimum countSecond
MySQL_ThreadsConnected MySQL threads connected userId,instanceId Average,Maximum,Minimum count
MySQL_ThreadsRunning MySQL active threads userId,instanceId Average,Maximum,Minimum count

Objects

The collected Alibaba Cloud SLB object data structure can be viewed from "Infrastructure - Custom"

{
  "measurement": "aliyun_rds",
  "tags": {
    "name": "rm-xxxxx",
    "DBInstanceType": "Primary",
    "PayType": "Prepaid",
    "Engine": "MySQL",
    "DBInstanceClass": "rds.mysql.s2.large",
    "DBInstanceId": "rm-xxxxx",
    "ZoneId": "cn-shanghai-h",
    "RegionId": "cn-shanghai",
    "DBInstanceDescription": "Business System",
    "LockMode": "Unlock",
    "Category": "Basic",
    "ConnectionMode": "Standard",
    "DBInstanceNetType": "Intranet",
    "DBInstanceStorageType": "local_ssd"
  },
  "fields": {
    "CreationTime": "2022-12-13T16:00:00Z",
    "ExpireTime": "2022-12-13T16:00:00Z",
    "DiskUsed": "10000",
    "BackupSize": "10000",
    "LogSize": "10000",
    "BackupLogSize": "10000",
    "BackupDataSize": "10000",
    "ConnectionString": "{JSON connection address data}",
    "DBInstanceStorage": "100",
    "accounts": "{JSON user privilege data}",
    "databases": "{JSON database data}",
    "SSLExpireTime": "2022-10-11T08:16:43Z",
    "message": "{JSON instance data}"
  }
}

Note: The fields in tags and fields may change with subsequent updates.

Note: The value of tags.name is the instance ID, used as a unique identifier.

Note 2: fields.message and fields.ConnectionString are serialized JSON strings.

Note 3: The units for fields.DiskUsed, fields.BackupSize, fields.LogSize, fields.BackupLogSize, and fields.BackupDataSize are Bytes, while the unit for fields.DBInstanceStorage is GB.

Note 4: field.SSLExpireTime is in UTC time.