2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
Try running the command with the dimensions "ClusterName", "ClusterId", and "ShardId".
aws cloudwatch get-metric-statistics \ --namespace AWS/DocDB-Elastic \ --metric-name PrimaryInstanceCPUUtilization \ --period 360 \ --start-time "$(date -u -d '1 hour ago' +'%Y-%m-%dT%H:%M:%SZ')" \ --end-time "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --statistics Average --dimensions Name=ClusterName,Value=test Name=ClusterId,Value=cdbeaxxxxxxxxxxx Name=ShardId,Value=d618xxxxxxxxxxxxxxx
The metrics show that the dimensions are as follows, which must also be specified in the command options.
0
Hi, I ran the following for Sagemaker endpoint, it gave me empty data point. Can you please help ?
aws cloudwatch get-metric-statistics
--namespace AWS/SageMaker
--metric-name CPUUtilization
--period 720
--start-time "$(date -u -d '1 week ago' '+%Y-%m-%dT%H:%M:%S')"
--end-time "$(date -u '+%Y-%m-%dT%H:%M:%S')"
--statistics Average --dimensions Name=EndpointName,Value=mysagemakerendpointname Name=VariantName,Value=CPUUtilization
Output:- { "Label": "CPUUtilization", "Datapoints": [] }
answered 3 months ago
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
Thank you Riku, it works. Yay!!!