3.10.4. 查看现有警报
若要列出现有的遥测警报,可使用 aodh 命令。例如:
# aodh alarm list
+--------------------------------------+--------------------------------------------+----------------------------+-------------------+----------+---------+
| alarm_id | type | name | state | severity | enabled |
+--------------------------------------+--------------------------------------------+----------------------------+-------------------+----------+---------+
| 922f899c-27c8-4c7d-a2cf-107be51ca90a | gnocchi_aggregation_by_resources_threshold | iops-monitor-read-requests | insufficient data | low | True |
+--------------------------------------+--------------------------------------------+----------------------------+-------------------+----------+---------+
要列出分配给某一资源的计量,请指定资源的 UUID (实例、镜像或卷等)。例如:
# gnocchi resource show 5e3fcbe2-7aab-475d-b42c-a440aa42e5ad