Loading
close

存储集群状态

time 更新时间:2024-08-20 19:36:26

功能介绍

存储集群状态页面接口调用说明。

URI

GET /apis/monitoring/v1/ecms/storage

可选Metrics

名称 说明 单位
storage_health_status 存储集群健康状态
Storage Service Health
storage_osd_total OSD 总数 OSD Total
storage_osd_up_total OSD Up 数量
Number of OSD Up
storage_osd_down_total OSD Down 数量
Number of OSD Down
storage_osd_in_total OSD In 数量
Number of OSD In
storage_osd_out_total OSD Out 数量
Number of OSD Out
storage_actual_capacity_free_bytes 存储集群实际可用容量
Actual Available Storage Capacity - Free
Byte
storage_actual_capacity_usage_bytes 存储集群实际已用容量
Actual Available Storage Capacity - Usage
Byte
storage_actual_capacity_total_bytes 存储集群实际总量
Actual Available Storage Capacity - Total
Byte
storage_user_data_pool_bytes 用户可用存储池使用量
User Data Pool Usage
Byte
storage_control_plane_data_pool_bytes 控制平面数据存储池使用量
Control Plane Data Pool Usage
Byte
storage_image_pool_bytes 镜像存储池使用量
Image Pool Usage
Byte
storage_volume_backup_pool_bytes 云硬盘备份存储池使用量
Volume Backup Pool Usage
Byte
storage_volume_pool_bytes 云硬盘存储池使用量
Volume Pool Usage
Byte
storage_monitor_data_pool_bytes 监控数据存储池使用量
Monitor Data Pool Usage
Byte
storage_other_pool_bytes 其他使用量
Other Usage
Byte
storage_physical_capacity_free_bytes 存储集群可用裸容量
Physical Storage Capacity - Free
Byte
storage_physical_capacity_usage_bytes 存储集群已用裸容量
Physical Storage Capacity - Usage
Byte
storage_physical_capacity_total_bytes 存储集群总裸容量
Physical Storage Capacity - Total
Byte
storage_cluster_iops_read 读 - 存储集群 IOPS
Read - Storage Cluster IOPS
Bps
storage_control_plane_data_pool_iops_read 读 - 控制平面存储池 IOPS
Read- Control Plane Data Pool IOPS
Bps
storage_image_pool_iops_read 读 - 镜像存储池 IOPS
Read- Image Pool IOPS
Bps
storage_volume_backup_pool_iops_read 读 - 云硬盘备份存储池 IOPS
Read- Volume Backup Pool IOPS
Bps
storage_volume_pool_iops_read 读 - 云硬盘存储池 IOPS
Read- Volume Pool IOPS
Bps
storage_monitor_data_pool_iops_read 读 - 监控数据存储池 IOPS
Read- Monitor Data Pool IOPS
Bps
storage_other_pool_iops_read 读 - 其他 IOPS
Read- Other IOPS
Bps
storage_cluster_iops_write 写 - 存储集群 IOPS
Write - Storage Cluster IOPS
Bps
storage_control_plane_data_pool_iops_write 写 - 控制平面存储池 IOPS
Write- Control Plane Data Pool
Bps
storage_image_pool_iops_write 写 - 镜像存储池 IOPS
Write- Image Pool IOPS
Bps
storage_volume_backup_pool_iops_write 写 - 云硬盘备份存储池 IOPS
Write- Volume Backup Pool IOPS
Bps
storage_volume_pool_iops_write 写 - 云硬盘存储池 IOPS
Write- Volume Pool IOPS
Bps
storage_monitor_data_pool_iops_write 写 - 监控数据存储池 IOPS
Write- Monitor Data Pool IOPS
Bps
storage_other_pool_iops_write 写 - 其他 IOPS
Write- Other IOPS
Bps
storage_iops_rebalance 存储集群 IOPS 数据平衡
Rebalance - Storage Cluster IOPS
Bps
storage_cluster_throughput_read 读 - 存储集群带宽
Read - Storage Cluster Throughput
Bps
storage_control_plane_data_pool_throughput_read 读 - 控制平面存储池带宽
Read- Control Plane Data Pool Throughput
Bps
storage_image_pool_throughput_read 读 - 镜像存储池带宽
Read- Image Pool
Bps
storage_volume_backup_pool_throughput_read 读 - 云硬盘备份存储池带宽
Read- Volume Backup Pool Throughput
Bps
storage_volume_pool_throughput_read 读 - 云硬盘存储池带宽
Read- Volume Pool Throughput
Bps
storage_monitor_data_pool_throughput_read 读 - 监控数据存储池带宽
Read- Monitor Data Pool Throughput
Bps
storage_other_pool_throughput_read 读 - 其他带宽
Read- Other Throughput
Bps
storage_cluster_throughput_write 写 - 存储集群带宽
Write - Storage Cluster Throughput
Bps
storage_control_plane_data_pool_throughput_write 写 - 控制平面存储池带宽
Write- Control Plane Data Pool Throughput
Bps
storage_image_pool_throughput_write 写 - 镜像存储池带宽
Write- Image Pool Throughput
Bps
storage_volume_backup_pool_throughput_write 写 - 云硬盘备份存储池带宽
Write- Volume Backup Pool Throughput
Bps
storage_volume_pool_throughput_write 写 - 云硬盘存储池带宽
Write- Volume Pool Throughput
Bps
storage_monitor_data_pool_throughput_write 写 - 监控数据存储池带宽
Write- Monitor Data Pool Throughput
Bps
storage_other_pool_throughput_write 写 - 其他带宽
Write- Other Throughput
Bps
storage_throughput_rebalance 存储集群带宽数据平衡
Rebalance - Storage Cluster Throughput
Bps
storage_cluster_disk_info 集群节点磁盘信息
Disk Info of Node
storage_top_10_disk_temperature 温度前10名磁盘
Top 10 Disk Temperature
storage_disk_bad_sector 磁盘坏扇区监控
Disk Bad Sector

示例

示例一:查询存储集群实际可用容量、已用容量和总量

请求示例:

cURI -H 'X-Auth-Token: gAAAAABf_Qb8yyZ2zM-uhK7q5c8D6ikGc7A5o4FenPkzYlpCI2PhJXtnDOyl9EeCQ-Gj9lg0SV37PIZda3nlUCTrBawfsbnSM1pw-9QJWoEo3NDxSvM5fyhQIadjI17H0jV40NHx9tc3EkIxrAScXhxZsldOt9uVjRO6cq9pFTKs6qhxyu1GBHk' 'http://emla.openstack.svc.cluster.local/apis/monitoring/v1/ecms/storage?metrics_filter=storage_actual_capacity_free_bytes|storage_actual_capacity_usage_bytes|storage_actual_capacity_total_bytes'

响应示例:

{
 "results": [
  {
   "metric_name": "storage_actual_capacity_usage_bytes",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1609227798.87,
       "113642179202"
      ]
     }
    ]
   }
  },
  {
   "metric_name": "storage_actual_capacity_total_bytes",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1609227798.87,
       "2768340388482"
      ]
     }
    ]
   }
  },
  {
   "metric_name": "storage_actual_capacity_free_bytes",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1609227798.87,
       "2654698209280"
      ]
     }
    ]
   }
  }
 ]
}

可用容量:2654698209280 Byte ,已用容量:113642179202 Byte ,总量:2768340388482 Byte。

示例二:查询集群节点磁盘信息

请求示例:

cURI -H 'X-Auth-Token: gAAAAABf_Qb8yyZ2zM-uhK7q5c8D6ikGc7A5o4FenPkzYlpCI2PhJXtnDOyl9EeCQ-Gj9lg0SV37PIZda3nlUCTrBawfsbnSM1pw-9QJWoEo3NDxSvM5fyhQIadjI17H0jV40NHx9tc3EkIxrAScXhxZsldOt9uVjRO6cq9pFTKs6qhxyu1GBHk' 'http://emla.openstack.svc.cluster.local/apis/monitoring/v1/ecms/storage?metrics_filter=storage_cluster_disk_info'

响应示例:

{
 "results": [
  {
   "metric_name": "storage_cluster_disk_info",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "metric": {
       "__name__": "smartmon_device_info",
       "device_model": "INTEL SSDSC2KG480A0",
       "device_serial_number": "BTYG010302SL480BA0",
       "device_type": "SSD",
       "disk": "/dev/bus/",
       "disk_capacity": "480GB",
       "disk_usage": "143.42GB",
       "eid": "32",
       "eid_slt": "32/3",
       "firmware_version": "XCV10120",
       "host_ip": "10.10.1.4",
       "instance": "10.10.1.4:9100",
       "interface": "sat+megaraid,3",
       "job": "node-exporter",
       "kubernetes_namespace": "openstack",
       "node": "node-1",
       "node_name": "node-1",
       "nodename": "node-1",
       "osd_id": "3",
       "owner": "/dev/sdb ",
       "ownerpur": "/dev/sdb (cache)",
       "power_on_hours": "1860",
       "purpose": "cache",
       "rotation_rate": "Solid State Device",
       "slot_num": "3",
       "status_healthy": "OK",
       "used_life": "0%"
      },
      "value": [
       1609232685.499,
       "1"
      ]
     },
     ...
     {
      "metric": {
       "__name__": "smartmon_device_info",
       "device_model": "SEAGATE ST91000640SS",
       "device_serial_number": "9XGA6L9T0000C716364U",
       "device_type": "HDD",
       "disk": "/dev/bus/",
       "disk_capacity": "1.00TB",
       "disk_usage": "0",
       "eid_slt": "/",
       "host_ip": "10.10.1.6",
       "instance": "10.10.1.6:9100",
       "interface": "megaraid,6",
       "job": "node-exporter",
       "kubernetes_namespace": "openstack",
       "lun_id": "0x5000c500b7210497",
       "node": "node-3",
       "node_name": "node-3",
       "nodename": "node-3",
       "osd_id": "-",
       "owner": "-",
       "ownerpur": "-(-)",
       "power_on_hours": "-",
       "product": "ST91000640SS",
       "purpose": "-",
       "release_group": "prometheus-node-exporter",
       "revision": "0004",
       "rotation_rate": "7200 rpm",
       "status_healthy": "OK",
       "used_life": "-",
       "vendor": "SEAGATE"
      },
      "value": [
       1609255520.906,
       "1"
      ]
     }
    ]
   }
  }
 ]
}

磁盘主要labels信息如下:

Label 名称 说明
device_model 磁盘型号 Model
device_serial_number 序列号 Serial Number
device_type 类型 Type
disk_capacity 磁盘容量 Capacity
disk_usage 磁盘使用量 Usage
eid_slt 槽位 EID/Slt
interface 磁盘接口 Interface
node 节点 Node
osd_id OSD ID
ownerpur 硬盘 Disk
status_healthy 健康状态 Health
used_life 固态磁盘寿命损耗 SSD Lifetime

集群节点磁盘信息如下:

磁盘型号 序列号 类型 磁盘容量 已使用量 EID/Slt 磁盘接口 节点 OSD ID 硬盘 健康状态 固态磁盘寿命损耗
INTEL SSDSC2KG480A0 BTYG010302SL480BA0 SSD 480GB 143.42GB 32/3 sat+megaraid,3 node-1 3 /dev/sdb (cache) OK 健康 0%
SEAGATE ST91000640SS 9XGA6L9T0000C716364U HDD 1.00TB 0 / megaraid,6 node-3 - -(-) OK 健康 -
此篇文章对你是否有帮助?
没帮助
locked-file

您暂无权限访问该产品