2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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": [] }
beantwortet vor 3 Monaten
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 8 Monaten
- AWS OFFICIALAktualisiert vor 8 Monaten
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 8 Monaten
Thank you Riku, it works. Yay!!!