使用AWS CLI在RDS数据库上查询存储状态 [英] Query storage status on an RDS DB using AWS CLI
本文介绍了使用AWS CLI在RDS数据库上查询存储状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想监视一些RDS服务器的磁盘空间不足.为简单起见,我更喜欢使用当前的监控系统,而不是使用诸如cloudwatch之类的AWS解决方案.
I have a few RDS servers I'd like to monitor for insufficient disk space. For simplicity sake, I prefer using my current monitoring system rather than an AWS solution like cloudwatch.
我一直阅读文档和最近的文档解决方案是 describe-db-instances
,它提供分配的存储空间,但不提供剩余空间/已使用的存储空间:
I've been reading the documentation and the nearest solution was describe-db-instances
, which gives the allocated storage, but not the space left / amount of storage used:
"SecondaryAvailabilityZone": "us-east-1a",
"ReadReplicaDBInstanceIdentifiers": [],
"AllocatedStorage": 100,
...
如何查询特定的RDS数据库实例以获取剩余或已使用的可用空间量?
推荐答案
正确的工具是 <DB-NAME>
和度量标准名称FreeStorageSpace
可以使用:
<DB-NAME>
and the metric name FreeStorageSpace
can be found using:
aws cloudwatch list-metrics
这篇关于使用AWS CLI在RDS数据库上查询存储状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文