Amazon CloudWatch
To export monitoring data from your Upsolver account, you must first create a connection that provides the appropriate credentials to access your Amazon CloudWatch.
Syntax
Jump to
Connection Options
AWS_ROLE
— editable
AWS_ROLE
— editableType: text
(Optional) The AWS IAM role ARN. Used in conjunction with EXTERNAL_ID
.
If omitted, the role created when integrating Upsolver with the AWS account is used.
EXTERNAL_ID
— editable
EXTERNAL_ID
— editableType: text
(Optional) The external ID of the role to assume. Used in conjunction with AWS_ROLE
.
If omitted, the role created when integrating Upsolver with the AWS account is used.
AWS_ACCESS_KEY_ID
— editable
AWS_ACCESS_KEY_ID
— editableType: text
(Optional) The AWS access key ID. Used in conjunction with AWS_SECRET_ACCESS_KEY
.
If omitted, the role created when integrating Upsolver with the AWS account is used.
AWS_SECRET_ACCESS_KEY
— editable
AWS_SECRET_ACCESS_KEY
— editableType: text
(Optional) The AWS secret key corresponds to the provided AWS_ACCESS_KEY_ID
.
If omitted, the role created when integrating Upsolver with the AWS account is used.
REGION
REGION
Type: text
The AWS region to use.
COMMENT
— editable
COMMENT
— editableType: text
(Optional) A description or comment regarding this connection.
Example
Create a connection
The following example creates a new connection named my_cloudwatch_connection that will be used to send monitoring information to CloudWatch.
Like any other connection you create in Upsolver, the connection is persistent, so you need only create this once.
Create a job
The following script creates a job named send_monitoring_data_to_cloudwatch that sends cluster metrics to the CloudWatch account my_cloudwatch_connection created in the above example:
The job writes to the upsolver namespace in the CloudWatch account and includes the cluster_id and cluster_name as tags, which is helpful if you have multiple clusters in your organization.
Last updated