Loading
close

节点状态

time 更新时间:2022-06-14 15:55:08

功能介绍

节点状态页面接口调用说明。

URI

GET /apis/monitoring/v1/ecms/nodes/{node}

参数 是否必选 描述
node 指定具体节点,如node-2

说明:
若不指定node,则查询所有节点数据。

可选Metrics

名称 说明 单位
node_cpu_utilization_total CPU使用率 CPU Utilization %
node_cpu_utilization_user CPU使用率-user
CPU Utilization-user
%
node_cpu_utilization_system CPU使用率-system
CPU Utilization-system
%
node_cpu_utilization_nice CPU 使用率-nice
CPU Utilization-nice
%
node_cpu_utilization_iowait CPU 使用率-iowait
CPU Utilization-iowait
%
node_cpu_utilization_irq CPU 使用率-irq
CPU Utilization-irq
%
node_cpu_utilization_softirq CPU 使用率-softirq
CPU Utilization-softirq
%
node_cpu_utilization_steal CPU 使用率-steal
CPU Utilization-steal
%
node_cpu_utilization_idle 【扩展】CPU 使用率-idle
CPU Utilization-idle
%
node_memory_usage 物理内存已使用量
Physical Memory Usage
Byte
node_memory_buffer_usage 【扩展】物理内存 Buffer 使用量
Physical Memory Buffer Usage
Buffers in /proc/meminfo
Byte
node_memory_cache_usage 【扩展】物理内存 Cache 使用量 Physical Memory Cache Usage
Cached and Slab in /proc/meminfo
Byte
node_memory_free 物理内存空闲量
Physical Memory Free
Byte
node_memory_total 【扩展】物理内存总量
Physical Memory Total
Byte
node_memory_cached 【扩展】物理内存Cached 使用量
Physical Memory Cached
Byte
node_memory_slab 【扩展】物理内存 Slab 使用量
Physical Memory Slab
Byte
node_instance_cpu_utilization 云主机 CPU 使用率总和
Instance CPU Utilization Total
%
node_instance_memory_utilization 云主机内存使用率总和
Instance Memory Utilization Total
%
node_disk_io_utilization 节点磁盘 I/O 使用率
Physical Disk I/O Utilization
%
node_disk_io_throughput_read 节点磁盘 I/O 读速率
Physical Disk I/O Throughput Read
Bps
node_disk_io_throughput_written 节点磁盘 I/O 写速率
Physical Disk I/O Throughput Written
Bps
node_disk_io_latency 节点磁盘 I/O 延迟
Disk I/O Latency
μs
node_system_workload_last_1m 过去1分钟节点负载情况
Last 1m Workload of Node
node_system_workload_last_5m 过去5分钟节点负载情况
Last 5m Workload of Node
node_system_workload_last_15m 过去15分钟节点负载情况
Last 15m Workload of Node
node_deployment_network_received_data_traffic 部署网络接收数据流量
Deployment Network received data traffic
Bps
node_console_network_received_data_traffic 控制台网络接收数据流量
Console Network received data traffic
Bps
node_heartbeat_network_received_data_traffic_service 业务心跳网络接收数据流量
Service Heartbeat Network received data traffic
Bps
node_management_network_received_data_traffic 管理网络接收数据流量
Management Network received data traffic
Bps
node_storage_cluster_network_received_data_traffic 存储集群管理网络接收数据流量
Storage Cluster Network received data traffic
Bps
node_storage_data_network_received_data_traffic 存储集群业务网络接收数据流量
Storage Data Network received data traffic
Bps
node_private_network_received_data_traffic 私有网络接收数据流量
Private Network received data traffic
Bps
node_public_network_received_data_traffic 外部网络接收数据流量
Public Network received data traffic
Bps
node_deployment_network_sent_data_traffic 部署网络发送数据流量
Deployment Network sending data traffic
Bps
node_console_network_sent_data_traffic 控制台网络发送数据流量
Console Network sending data traffic
Bps
node_service_heartbeat_network_sent_data_traffic 业务心跳网络发送数据流量
Service Heartbeat Network sending data traffic
Bps
node_management_network_sent_data_traffic 管理网络发送数据流量
Management Network sending data traffic
Bps
node_storage_cluster_network_sent_data_traffic 存储集群管理网络发送数据流量
Storage Cluster Network sending data traffic
Bps
node_storage_data_network_sent_data_traffic 存储集群业务网络发送数据流量
Storage Data Network sending data traffic
Bps
node_private_network_sent_data_traffic 私有网络发送数据流量
Private Network sending data traffic
Bps
node_public_network_sent_data_traffic 外部网络发送数据流量
Public Network sending data traffic
Bps
node_disk_info 节点磁盘信息 Disk Info of Node
node_disk_temperature 磁盘温度监控 Disk Temperature
node_disk_bad_sector 磁盘坏扇区监控 Disk Bad Sector
node_hardware_cpu_temperature 节点硬件 CPU 温度
CPU Temperature of Node Hardware
node_hardware_cpu_voltage 节点硬件 CPU 电压
CPU Voltage of Node Hardware
V
node_hardware_fan_speed 节点硬件风扇转速
Fan Speed of Node Hardware
RPM
node_hardware_memory_temperature 节点硬件内存温度
Memory Temperature of Node Hardware

说明:

  • 【扩展】metrics为 ECMS 页面没有展示的信息,作为扩展内容供选择使用。
  • 若不指定节点,以下metrics返回的值为所有节点值之和,使用时需警告:
    node_cpu_utilization_total
    node_system_workload_last_1m
    node_system_workload_last_5m
    node_system_workload_last_15m

示例

示例一:查询所有节点CPU使用率

请求示例:

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

响应示例:

{
 "results": [
  {
   "metric_name": "node_cpu_utilization_total",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "value": [
       1612712433.218,
       "105.79514078716885"
      ]
     }
    ]
   }
  }
 ]
}

使用时请注意 105.79514078716885 为所有节点 CPU 使用率之和。

示例二:查询所有节点CPU使用率-user

请求示例:

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

响应示例:

{
 "results": [
  {
   "metric_name": "node_cpu_utilization_user",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "metric": {
       "__name__": "node_cpu_utilization",
       "host_ip": "10.20.0.4",
       "mode": "user",
       "node_name": "node-1"
      },
      "value": [
       1609244604.515,
       "1.1333333333333444"
      ]
     },
     {
      "metric": {
       "__name__": "node_cpu_utilization",
       "host_ip": "10.20.0.5",
       "mode": "user",
       "node_name": "node-2"
      },
      "value": [
       1609244604.515,
       "1.1083333333333438"
      ]
     },
     {
      "metric": {
       "__name__": "node_cpu_utilization",
       "host_ip": "10.20.0.6",
       "mode": "user",
       "node_name": "node-3"
      },
      "value": [
       1609244604.515,
       "0.9812336461059059"
      ]
     }
    ]
   }
  }
 ]
}

返回所有节点各自的 CPU 使用率- user:
node-1:1.1333333333333444 %, node-2:1.1083333333333438 %,node-3:0.9812336461059059 %。

示例三:查询节点node-1的磁盘I/O延迟

请求示例:

curl -H 'X-Auth-Token: gAAAAABf_Qb8yyZ2zM-uhK7q5c8D6ikGc7A5o4FenPkzYlpCI2PhJXtnDOyl9EeCQ-Gj9lg0SV37PIZda3nlUCTrBawfsbnSM1pw-9QJWoEo3NDxSvM5fyhQIadjI17H0jV40NHx9tc3EkIxrAScXhxZsldOt9uVjRO6cq9pFTKs6qhxyu1GBHk' 'http://emla.openstack.svc.cluster.local/apis/monitoring/v1/ecms/nodes/node-1?metrics_filter=node_disk_io_latency'

响应示例:

{
 "results": [
  {
   "metric_name": "node_disk_io_latency",
   "data": {
    "resultType": "vector",
    "result": [
     {
      "metric": {
       "__name__": "node_disk_io_latency",
       "application": "node_exporter",
       "component": "metrics",
       "device": "vda",
       "host_ip": "10.20.0.4",
       "instance": "10.20.0.4:9100",
       "job": "node-exporter",
       "kubernetes_namespace": "openstack",
       "node": "node-1",
       "node_name": "node-1",
       "release_group": "prometheus-node-exporter"
      },
      "value": [
       1609254070.189,
       "42361.11111110732"
      ]
     },
     {
      "metric": {
       "__name__": "node_disk_io_latency",
       "application": "node_exporter",
       "component": "metrics",
       "device": "vdb",
       "host_ip": "10.20.0.4",
       "instance": "10.20.0.4:9100",
       "job": "node-exporter",
       "kubernetes_namespace": "openstack",
       "node": "node-1",
       "node_name": "node-1",
       "release_group": "prometheus-node-exporter"
      },
      "value": [
       1609254070.189,
       "0"
      ]
     }
    ]
   }
  }
 ]
}

节点 node-1 vda 延迟 42361.11111110732 μs, vdb 延迟 13703.703703705276 μs 。

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

您暂无权限访问该产品