Loading
close

监控概览

time 更新时间:2022-05-26 21:27:03

功能介绍

监控概览页面接口调用说明。

URI

GET /apis/monitoring/v1/ecms/dashboard

可选Metrics

名称 说明 单位
虚拟资源
dashboard_instances_state 云主机状态 Instances State
dashboard_instances_vcpu_usage vCPU已使用情况 vCPU Usage Core,%
dashboard_instances_memory_usage 内存已使用情况 Memory Usage MiB,%
dashboard_instances_volumes_usage 云硬盘使用情况 Volumes Usage GiB
dashboard_instances_vcpu_utilization_top5 云主机vCPU利用率 TOP5
TOP5 Instances by vCPU Utilization
%
dashboard_instances_memory_utilization_top5 云主机内存利用率TOP5
TOP5 Instances by Memory Utilization
%
dashboard_control_plane_service_health 平台服务健康状态
Control Plane Service Health
监控资源
dashboard_storage_service_health 存储服务健康状态
Storage Service Health
dashboard_node_state_total 节点总数
Nodes Total
dashboard_node_state_online 在线节点数量
Number of Online Nodes
dashboard_node_state_maintenance 维护节点数量
Number of Maintenance Nodes
dashboard_node_state_offline 离线节点数量
Number of Offline Nodes
dashboard_node_state_error 异常节点数量
Number of Error Nodes
dashboard_node_total_list 【扩展】全部节点列表
List of All Nodes
dashboard_node_online_list 【扩展】在线节点列表
List of Online Nodes
dashboard_node_maintenance_list 【扩展】维护节点列表
List of Maintenance Nodes
dashboard_node_offline_list 【扩展】离线节点列表
List of Offline Nodes
dashboard_node_non_cloud_product_list 【扩展】非云产品节点列表
List of Non-Cloud Product Nodes
dashboard_cpu_total 物理CPU总量 CPU Total Core
dashboard_cpu_free 物理CPU可用数量 CPU Free Core
dashboard_cpu_usage 物理CPU已使用数量
CPU Usage
Core
dashboard_storage_total 物理存储总量 Storage Total Byte
dashboard_storage_free 物理存储可用容量 Storage Free Byte
dashboard_storage_usage 物理存储已使用量Storage Usage Byte
dashboard_memory_total 物理内存总量 Memory Total Byte
dashboard_memory_free 物理内存可用容量 Memory Free Byte
dashboard_memory_usage 物理内存已使用量
Memory Usage
Byte
dashboard_memory_buffers 【扩展】物理内存Buffer使用量
Memory Buffer
Byte
dashboard_memory_cached 【扩展】物理内存Cache使用量
Memory Cache
Byte
dashboard_memory_slab 【扩展】物理内存Slab使用量
Memory Slab
Byte
dashboard_cache_disk_total 缓存盘总数Cache Disk Total
dashboard_cache_disk_health 缓存盘健康数量
Number of Healthy Cache Disk
dashboard_cache_disk_warning 缓存盘告警数量
Number of Warning Cache Disk
dashboard_data_disk_total 数据盘总数
Data Disk Total
dashboard_data_disk_health 数据盘健康数量
Number of Healthy Data Disk
dashboard_data_disk_warning 数据盘告警数量
Number of Warning Data Disk
dashboard_system_disk_total 系统盘总数 System Disk Total
dashboard_system_disk_health 系统盘健康数量
Number of Healthy System Disk
dashboard_system_disk_warning 系统盘告警数量
Number of Warning System Disk
dashboard_top5_data_disk_io_latency 集群数据盘 IO 延迟 TOP5
TOP5 Cluster Data Disks by IO Latency
μs
dashboard_storage_cluster_iops_read 读 - 存储集群 IOPS
Read - Storage Cluster IOPS
Bps
dashboard_storage_cluster_iops_write 写 - 存储集群 IOPS
Write - Storage Cluster IOPS
Bps
dashboard_storage_cluster_iops_rebalance 存储集群 IOPS 数据平衡
Rebalance - Storage Cluster IOPS
Bps
dashboard_storage_cluster_throughput_read 读 - 存储集群带宽
Read - Storage Cluster Throughput
Bps
dashboard_storage_cluster_throughput_write 写 - 存储集群带宽
Write - Storage Cluster Throughput
Bps
dashboard_storage_cluster_throughput_rebalance 存储集群带宽数据平衡
Rebalance - Storage Cluster Throughput
Bps

警告:

  • 虚拟资源metrics需要单独处理和聚合,获取数据的时间相对较长。
  • 【扩展】metrics为ECMS页面没有展示的信息,作为扩展内容供选择使用。

示例

示例一:查询云主机状态

请求示例:

curl -H 'X-Auth-Token: gAAAAABf_Qb8yyZ2zM-uhK7q5c8D6ikGc7A5o4FenPkzYlpCI2PhJXtnDOyl9EeCQ-Gj9lg0SV37PIZda3nlUCTrBawfsbnSM1pw-9QJWoEo3NDxSvM5fyhQIadjI17H0jV40NHx9tc3EkIxrAScXhxZsldOt9uVjRO6cq9pFTKs6qhxyu1GBHk' 
-H 'X-Domain-Token: gAAAAABf_QcH7vboOe980bGoa0DFI3WBGziaLDHfTQZmUdw6P8FgTxnJRh5JlVrtl11AAQjLivdUoRHrxOndxTa6QR67LeHmFNSDmrrZgoR9-iZ7wLcrvYxl6MwHboDdZ1MqSz1NFDUUHGHb7rSX7NcU00bcJvbtpA' 'http://emla.openstack.svc.cluster.local/apis/monitoring/v1/ecms/dashboard?metrics_filter=dashboard_instances_state'

响应示例:

{
 "results": [
  {
   "metric_name": "dashboard_instances_state",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "metric": {
       "status": "running"
      },
      "value": [
       1610367201.787,
       "5"
      ]
     },
     {
      "metric": {
       "status": "error"
      },
      "value": [
       1610367201.787,
       "3"
      ]
     },
     {
      "metric": {
       "status": "shutdown"
      },
      "value": [
       1610367201.787,
       "1"
      ]
     },
     {
      "metric": {
       "status": "recycle_bin"
      },
      "value": [
       1610367201.787,
       "2"
      ]
     },
     {
      "metric": {
       "status": "others"
      },
      "value": [
       1610367201.787,
       "0"
      ]
     }
    ]
   }
  }
 ]
}

云主机主要有以下五种状态:
运行中(Running)、关机(Shutdown)、错误(Error)、回收站(Recycle Bin)、其他(Other)
metric中“status”信息:

status running shutdown error recycle_bin others
说明 运行中 关机 错误 回收站 其他

此时云主机节点状态为:运行中 5 个,关机 1 个,错误 3 个,回收站 2 个,其他 0 个。

示例二:查询缓存盘健康状态

请求示例:

curl -H 'X-Auth-Token: gAAAAABf_Qb8yyZ2zM-uhK7q5c8D6ikGc7A5o4FenPkzYlpCI2PhJXtnDOyl9EeCQ-Gj9lg0SV37PIZda3nlUCTrBawfsbnSM1pw-9QJWoEo3NDxSvM5fyhQIadjI17H0jV40NHx9tc3EkIxrAScXhxZsldOt9uVjRO6cq9pFTKs6qhxyu1GBHk' 
-H 'X-Domain-Token: gAAAAABf_QcH7vboOe980bGoa0DFI3WBGziaLDHfTQZmUdw6P8FgTxnJRh5JlVrtl11AAQjLivdUoRHrxOndxTa6QR67LeHmFNSDmrrZgoR9-iZ7wLcrvYxl6MwHboDdZ1MqSz1NFDUUHGHb7rSX7NcU00bcJvbtpA' 'http://emla.openstack.svc.cluster.local/apis/monitoring/v1/ecms/dashboard?metrics_filter=dashboard_cache_disk_total|dashboard_cache_disk_health|dashboard_cache_disk_warning'

响应示例:

{
 "results": [
  {
   "metric_name": "dashboard_cache_disk_health",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1610432044.755,
       "5
"
      ]
     }
    ]
   }
  },
  {
   "metric_name": "dashboard_cache_disk_warning",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1610432044.755,
       "1"
      ]
     }
    ]
   }
  },
  {
   "metric_name": "dashboard_cache_disk_total",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1610432044.755,
       "6"
      ]
     }
    ]
   }
  }
 ]
}

缓存盘健康状态: 总数 6,健康 5,告警 1。

示例三:查询连续时间序列 写-存储集群 IOPS

请求示例:

curl -H 'X-Auth-Token: gAAAAABf_Qb8yyZ2zM-uhK7q5c8D6ikGc7A5o4FenPkzYlpCI2PhJXtnDOyl9EeCQ-Gj9lg0SV37PIZda3nlUCTrBawfsbnSM1pw-9QJWoEo3NDxSvM5fyhQIadjI17H0jV40NHx9tc3EkIxrAScXhxZsldOt9uVjRO6cq9pFTKs6qhxyu1GBHk' 
-H 'X-Domain-Token: gAAAAABf_QcH7vboOe980bGoa0DFI3WBGziaLDHfTQZmUdw6P8FgTxnJRh5JlVrtl11AAQjLivdUoRHrxOndxTa6QR67LeHmFNSDmrrZgoR9-iZ7wLcrvYxl6MwHboDdZ1MqSz1NFDUUHGHb7rSX7NcU00bcJvbtpA' 'http://emla.openstack.svc.cluster.local/apis/monitoring/v1/ecms/dashboard?metrics_filter=dashboard_storage_cluster_iops_write&start=1610434791&end=1610438391&step=30s'

响应示例:

{
 "results": [
  {
   "metric_name": "dashboard_storage_cluster_iops_write",
   "data": {
    "resultType": "matrix",
    "result": [
     {
      "values": [
       [
        1610434791,
        "47"
       ],
       [
        1610434821,
        "33"
       ],
       ...
       [
        1610438361,
        "43"
       ],
       [
        1610438391,
        "43"
       ]
      ]
     }
    ]
   }
  }
 ]
}

查询时间范围 2021 01-12 15:02 ~ 2021 01-12 16:02 的存储集群 IOPS-写的值,取值时间间隔为30s。

此篇文章对你是否有帮助?
没帮助
locked-file

您暂无权限访问该产品