文档首页> 基因容器 GCS> Python SDK参考> Cromwell接口> 监控> 查询正在运行execution各Job监控数据
更新时间:2021-03-18 GMT+08:00
分享

查询正在运行execution各Job监控数据

get_running_execution_resource_usage(execution_id, show_datapoints=False)

功能描述

获取正在执行状态execution的监控数据,包括CPU和内存使用情况。

输入参数

参数

是否必选

参数类型

参数描述

execution_id

String

execution ID

show_datapoints

Bool

是否展示采集到的监控数据点

返回值

表1 response body字典树第1层key值

参数

参数类型

描述

job-name

Array

流程中各Job的名称,具体内容见表2

表2 response body字典树各Job元素key值

参数

参数类型

描述

metric

Dictionary

监控元信息,具体内容见表3

max_value_metric

Dictionary

各监控数据点最大值

min_value_metric

Dictionary

各监控数据点最小值

average_value_metric

Float

各监控数据点平均值

current_value_metric

Dictionary

最近一次采集到的监控数据点

dataPoints

Array

当show_datapoints置为True时,该字段展示所有监控数据点详情

表3 监控元信息

参数

参数类型

描述

namespace

String

默认值“PAAS.CONTAINER”

metricName

String

监控指标,当前支持:

  • memUsed:已使用内存量,单位为M
  • cpuCoreLimit:CPU核数申请量,单位为Core
  • cpuUsage:CPU使用量所占百分比
  • memUsage:内存使用量所占百分比
  • memCapacity:内存容量,单位为M
  • cpuCoreUsed:已使用CPU核数,单位为Core

dimensions

Array

监控维度说明,具体内容见表4

表4 监控维度说明

参数

参数类型

描述

name

String

监控维度项,默认为以下2项:

  • clusterId,集群ID,默认为“CCI-ClusterID”
  • podID,CCI中Pod ID

value

String

监控维度值

表5 监控数据结构体

参数

参数类型

描述

timestamps

Long

监控数据获取时刻时间戳

unit

String

监控数据单位

statistics

Array

监控数据详情,具体内容见表6

表6 监控数据详情

参数

参数类型

描述

statistic

String

统计学方法,支持 maximum,average,minimum

value

Float

监控数据值

分享:

    相关文档

    相关产品