Skip to content

AWS Redshift

The core performance Metrics of AWS Redshift include query performance, disk space usage, CPU utilization, number of database connections, and disk I/O operations. These are all key Metrics for evaluating and optimizing the performance of a data warehouse.

Configuration

Install Func

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

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

Installation Script

Note: Please prepare an Amazon AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permission ReadOnlyAccess)

Script for Enabling Managed Version

  1. Log in to the Guance console.
  2. Click on the 【Integration】 menu and select 【Cloud Account Management】.
  3. Click 【Add Cloud Account】, choose 【AWS】, and fill in the required information on the interface. If you have already configured cloud account information, skip this step.
  4. Click 【Test】, and after the test succeeds, click 【Save】. If the test fails, check whether the relevant configuration information is correct and retest.
  5. In the 【Cloud Account Management】 list, you can see the added cloud account. Click on the corresponding cloud account to enter the details page.
  6. On the cloud account details page, click the 【Integration】 button. Under the Not Installed list, find AWS Redshift, click the 【Install】 button, and install it from the pop-up installation interface.

Manual Enablement Script

  1. Log in to the Func console, click 【Script Market】, enter the official script market, and search for: guance_aws_redshift.

  2. After clicking 【Install】, input the corresponding parameters: AWS AK ID, AK Secret, and account name.

  3. Click 【Deploy Startup Script】, and the system will automatically create a Startup script set and automatically configure the corresponding startup script.

  4. After enabling, you can see the corresponding automatic trigger configuration under 「Management / Automatic Trigger Configuration」. Click 【Execute】, and you can immediately execute it once without waiting for the scheduled time. Wait for a moment, and you can view the execution task records and corresponding logs.

Verification

  1. Confirm in 「Management / Automatic Trigger Configuration」 whether the corresponding tasks have the corresponding automatic trigger configurations, and at the same time, you can check the corresponding task records and logs to see if there are any abnormalities.
  2. In Guance, 「Infrastructure / Custom」, check if there is asset information.
  3. In Guance, 「Metrics」, check if there are corresponding monitoring data.

Metrics

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

Redshift Metrics

Metric Name Description Unit Dimensions
CPUUtilization Percentage of CPU usage. For clusters, this metric represents the sum of CPU usage values for all nodes (leader node and compute nodes). % ClusterIdentifier
HealthStatus Cluster health check 1: Normal or 0: Abnormal ClusterIdentifier
MaintenanceMode Whether the cluster is in maintenance mode 1: ON or 0: OFF ClusterIdentifier
PercentageDiskSpaceUsed Percentage of disk space used % ClusterIdentifier
DatabaseConnections Number of database connections in the cluster count ClusterIdentifier
CommitQueueLength Number of transactions waiting to be committed at a given time count ClusterIdentifier
ConcurrencyScalingActiveClusters Number of concurrency scaling clusters actively handling queries at any given time count ClusterIdentifier
NetworkReceiveThroughput Rate at which data is received by the node or cluster byte/s ClusterIdentifier
NetworkTransmitThroughput Rate at which data is written by the node or cluster byte/s ClusterIdentifier
MaxConfiguredConcurrencyScalingClusters Maximum number of concurrency scaling clusters configured from the parameter group count ClusterIdentifier
NumExceededSchemaQuotas Number of schemas exceeding quotas count ClusterIdentifier
ReadIOPS Average number of disk read operations per second count/s ClusterIdentifier
ReadLatency Average time required for disk read I/O operations seconds ClusterIdentifier
ReadThroughput Average number of bytes read from disk per second byte ClusterIdentifier
TotalTableCount Number of user tables open at a specific point in time count ClusterIdentifier
WriteIOPS Average number of disk write operations per second count/s ClusterIdentifier
WriteLatency Average time required for disk write I/O operations seconds ClusterIdentifier
WriteThroughput Average number of bytes written to disk per second byte ClusterIdentifier

Objects

The structure of AWS Redshift object data collected from Amazon can be seen in 「Infrastructure - Custom」

{
  "measurement": "aws_redshift",
  "tags": {
    "ClusterAvailabilityStatus"         : "Modifying",
    "ClusterIdentifier"                 : "hn-test",
    "ClusterStatus"                     : "creating",
    "ClusterSubnetGroupName"            : "default",
    "ClusterVersion"                    : "1.0",
    "DBName"                            : "dev",
    "MasterUsername"                    : "awsuser",
    "NodeType"                          : "dc2.large",
    "PreferredMaintenanceWindow"        : "sat:19:30-sat:20:00",
    "RegionId"                          : "cn-northwest-1",
    "VpcId"                             : "vpc-b1ca3ff0fa4d",
    "name"                              : "hn-test"
  },
  "fields": {
    "AllowVersionUpgrade"               : true,
    "AutomatedSnapshotRetentionPeriod"  : 1,
    "ClusterNodes"                      : "[]",
    "ClusterParameterGroups"            : "[{\"ParameterApplyStatus\": \"in-sync\", \"ParameterGroupName\": \"default.redshift-1.0\"}]",
    "ClusterSecurityGroups"             : "[]",
    "Encrypted"                         : false,
    "Endpoint"                          : "{}",
    "ManualSnapshotRetentionPeriod"     : -1,
    "NumberOfNodes"                     : 1,
    "PendingModifiedValues"             : "{\"MasterUserPassword\": \"****\"}",
    "PubliclyAccessible"                : false,
    "VpcSecurityGroups"                 : "[{\"Status\": \"active\", \"VpcSecurityGroupId\": \"sg-467a\"}]",
    "message"                           : "{Instance JSON data}"
  }
}

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

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

Tip 2: fields.message, fields.network_interfaces, fields.blockdevicemappings are JSON serialized strings.

Feedback

Is this page helpful? ×