Difference between revisions of "Aws cloudwatch get-metric-statistics"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
[[RDS]]
 
[[RDS]]
 
  AWS_DEFAULT_REGION="$REGION" [[aws cloudwatch]] get-metric-statistics \
 
  AWS_DEFAULT_REGION="$REGION" [[aws cloudwatch]] get-metric-statistics \
   --namespace AWS/[[RDS]] --metric-name FreeStorageSpace \
+
   --namespace AWS/[[RDS]] --metric-name [[FreeStorageSpace]] \
 
   --start-time $START --end-time $END --period 300 \
 
   --start-time $START --end-time $END --period 300 \
 
   --statistics Average \
 
   --statistics Average \
Line 9: Line 9:
  
 
* https://stackoverflow.com/questions/47331463/how-to-know-rds-free-storage
 
* https://stackoverflow.com/questions/47331463/how-to-know-rds-free-storage
 +
 +
aws cloudwatch get-metric-statistics            \
 +
                --metric-name FreeStorageSpace    \
 +
                --start-time 2022-07-01T23:00:00Z \
 +
                --end-time 2022-07-30T23:00:00Z  \
 +
                --period 3600                    \
 +
                --namespace AWS/RDS              \
 +
                --statistics Average              \ 
 +
                --dimensions Name=DBInstanceIdentifier,Value=${INSTANCE_NAME}
 +
 +
 +
  
 
== Related ==
 
== Related ==
Line 14: Line 26:
  
 
== See also ==
 
== See also ==
* {{RDS}}
+
* {{aws cloudwatch}}
* {{CloudWatch}}
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]
 
[[Category:CloudWatch]]
 
[[Category:CloudWatch]]

Latest revision as of 22:26, 1 August 2022

RDS

AWS_DEFAULT_REGION="$REGION" aws cloudwatch get-metric-statistics \
 --namespace AWS/RDS --metric-name FreeStorageSpace \
 --start-time $START --end-time $END --period 300 \
 --statistics Average \
 --dimensions "Name=YOUR_DBInstanceIdentifier, Value=${INSTANCE_NAME}"
aws cloudwatch get-metric-statistics             \
               --metric-name FreeStorageSpace    \
               --start-time 2022-07-01T23:00:00Z \ 
               --end-time 2022-07-30T23:00:00Z   \
               --period 3600                     \
               --namespace AWS/RDS               \
               --statistics Average              \  
               --dimensions Name=DBInstanceIdentifier,Value=${INSTANCE_NAME}



Related[edit]

See also[edit]

Advertising: