pull/17608/head
fuwx 1 year ago
parent a90fbac143
commit 800506f3fa
No known key found for this signature in database
GPG Key ID: C8FA8C18DFB4702B

@ -20,7 +20,7 @@ class TrendTool(BuiltinTool):
metric = tool_parameters.get('metricData')
metric_data = json.loads(metric)
# threshold = float(tool_parameters.get('threshold'))
res = "ok"
res = "true"
for serie in metric_data['data']['timeseries']:
# for k, v in serie['chart']['chartData'].items():
# v = float(v)

@ -2,19 +2,19 @@ identity:
name: 查询容器CPU利用率
author: APO
label:
en_US: Query the CPU utilization of the container
en_US: Query the CPU usage of the container
zh_Hans: 容器CPU使用率(使用Containerd容器运行时,按容器和Pod统计)
pt_BR: Query the CPU utilization of the container
pt_BR: Query the CPU usage of the container
display:
type: metric
title: 基础设施情况 - 容器CPU - 容器CPU使用率 - Containerd
unit: percent(0-100)百分比
description:
human:
en_US: Query the CPU utilization of the container
en_US: Query the CPU usage of the container
zh_Hans: 容器CPU使用率(使用Containerd容器运行时,按容器和Pod统计)
pt_BR: Query the CPU utilization of the container
llm: Query the CPU utilization of the container
pt_BR: Query the CPU usage of the container
llm: Query the CPU usage of the container
parameters:
- name: pod
type: string

@ -2,19 +2,19 @@ identity:
name: 容器CPU节流时长(使用Containerd容器运行时,按容器和Pod统计)
author: APO
label:
en_US: Query the CPU utilization of the container
en_US: Query the CPU cfs of the container
zh_Hans: 容器CPU节流时长(使用Containerd容器运行时,按容器和Pod统计)
pt_BR: Query the CPU utilization of the container
pt_BR: Query the CPU cfs of the container
display:
type: metric
title: 基础设施情况 - 容器CPU - 容器CPU节流时间 - Containerd
unit: s 秒
description:
human:
en_US: Query the CPU utilization of the container
en_US: Query the CPU cfs of the container
zh_Hans: 容器CPU节流时长(使用Containerd容器运行时,按容器和Pod统计)
pt_BR: Query the CPU utilization of the container
llm: Query the CPU utilization of the container
pt_BR: Query the CPU cfs of the container
llm: Query the CPU cfs of the container
parameters:
- name: pod
type: string

@ -2,18 +2,18 @@ identity:
name: select_container_cpu
author: APO
label:
en_US: Query the CPU utilization of the container
en_US: Query the disk read time of the container
zh_Hans: 容器磁盘读取耗时每秒(使用Containerd,按Pod和容器统计)
pt_BR: Query the CPU utilization of the container
pt_BR: Query the disk read time of the container
display:
type: metric
title: 基础设施情况 - 容器磁盘 - 读写花费时间 /s - Read
unit: percent(0-100)百分比
description:
human:
en_US: Query the CPU utilization of the container
en_US: Query the disk read time of the container
zh_Hans: 容器磁盘读取耗时每秒(使用Containerd,按Pod和容器统计)
pt_BR: Query the CPU utilization of the container
pt_BR: Query the disk read time of the container
llm: 容器磁盘读取耗时每秒(使用Containerd,按Pod和容器统计)
parameters:
- name: pod

@ -2,14 +2,14 @@ identity:
name: 查询容器内存使用量
author: APO
label:
en_US: Query container resident memory usage
en_US: Query container memory usage (Containerd)
zh_Hans: 容器内存使用字节数(使用Containerd容器运行时,按容器和Pod统计)
pt_BR: Query container resident memory usage
pt_BR: Query container memory usage
description:
human:
en_US: Query container resident memory usage
en_US: Query container memory usage (Containerd)
zh_Hans: 容器内存使用字节数(使用Containerd容器运行时,按容器和Pod统计)
pt_BR: Query container resident memory usage
pt_BR: Query container memory usage (Containerd)
llm: 容器内存使用字节数(使用Containerd容器运行时,按容器和Pod统计)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: host_cpu_iowait
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the CPU iowait of the host
zh_Hans: 宿主机IO等待CPU繁忙率
pt_BR: Query the CPU utilization of the host
pt_BR: Query the CPU iowait of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the CPU iowait of the host
zh_Hans: 宿主机IO等待CPU繁忙率
pt_BR: Query the CPU utilization of the host
pt_BR: Query the CPU iowait of the host
llm: 宿主机IO等待CPU繁忙率
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: 宿主机磁盘IO耗时速率
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the Disk IO of the host
zh_Hans: 宿主机磁盘IO耗时速率
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk IO of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the Disk IO of the host
zh_Hans: 宿主机磁盘IO耗时速率
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk IO of the host
llm: 宿主机磁盘IO耗时速率
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: 宿主机磁盘读取数据速率(字节/秒)
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the Disk Read bytes of the host
zh_Hans: 宿主机磁盘读取数据速率(字节/秒)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk Read bytes of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the Disk Read bytes of the host
zh_Hans: 宿主机磁盘读取数据速率(字节/秒)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk Read bytes of the host
llm: 宿主机磁盘读取数据速率(字节/秒)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: 宿主机磁盘使用率(百分比,不含rootfs)
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the Disk Used of the host
zh_Hans: 宿主机磁盘使用率(百分比,不含rootfs)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk Used of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the Disk Used of the host
zh_Hans: 宿主机磁盘使用率(百分比,不含rootfs)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk Used of the host
llm: 宿主机磁盘使用率(百分比,不含rootfs)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: 宿主机磁盘写入数据速率(字节/秒)
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the Disk write bytes of the host
zh_Hans: 宿主机磁盘写入数据速率(字节/秒)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk write bytes of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the Disk wirte bytes of the host
zh_Hans: 宿主机磁盘写入数据速率(字节/秒)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Disk write bytes of the host
llm: 宿主机磁盘写入数据速率(字节/秒)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: host_cpu_fd_open
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the file description open of the host
zh_Hans: 宿主机当前打开文件描述符数
pt_BR: Query the CPU utilization of the host
pt_BR: Query the file description of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the file description of the host
zh_Hans: 宿主机当前打开文件描述符数
pt_BR: Query the CPU utilization of the host
pt_BR: Query the file description of the host
llm: 宿主机当前打开文件描述符数
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: 宿主机网络接收速率(比特/秒)
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Query the Net recv of the host
zh_Hans: 宿主机网络接收速率(比特/秒)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Net recv of the host
description:
human:
en_US: Query the CPU utilization of the host
en_US: Query the Net recv of the host
zh_Hans: 宿主机网络接收速率(比特/秒)
pt_BR: Query the CPU utilization of the host
pt_BR: Query the Net recv of the host
llm: 宿主机网络接收速率(比特/秒)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: Originx 北极星指标 (服务层级) - RED指标 - 平均响应时间
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Average service response time
zh_Hans: 服务平均响应时间(毫秒,按服务名和内容键统计,指定时间段内)
pt_BR: Query the CPU utilization of the host
pt_BR: Average service response time
description:
human:
en_US: Query the CPU utilization of the host
en_US: Average service response time
zh_Hans: 服务平均响应时间(毫秒,按服务名和内容键统计,指定时间段内)
pt_BR: Query the CPU utilization of the host
pt_BR: Average service response time
llm: 服务平均响应时间(毫秒,按服务名和内容键统计,指定时间段内)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: Originx 北极星指标 (服务层级) - RED指标 - 请求成功率
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Service request success rate
zh_Hans: 服务请求成功率(按服务名和内容键统计,指定时间段内)
pt_BR: Query the CPU utilization of the host
pt_BR: Service request success rate
description:
human:
en_US: Query the CPU utilization of the host
en_US: Service request success rate
zh_Hans: 服务请求成功率(按服务名和内容键统计,指定时间段内)
pt_BR: Query the CPU utilization of the host
pt_BR: Service request success rate
llm: 服务请求成功率(按服务名和内容键统计,指定时间段内)
display:
type: metric

@ -2,14 +2,14 @@ identity:
name: polar_process_all_resp
author: APO
label:
en_US: Query the CPU utilization of the host
en_US: Thread Polaris Metrics Process All
zh_Hans: Thread Polaris Metrics - 北极星指标(进程) - 各类型耗时折线图 - 所有类型列表
pt_BR: Query the CPU utilization of the host
pt_BR: Thread Polaris Metrics Process All
description:
human:
en_US: Query the CPU utilization of the host
en_US: Thread Polaris Metrics Process All
zh_Hans: Thread Polaris Metrics - 北极星指标(进程) - 各类型耗时折线图 - 所有类型列表
pt_BR: Query the CPU utilization of the host
pt_BR: Thread Polaris Metrics Process All
llm: Thread Polaris Metrics - 北极星指标(进程) - 各类型耗时折线图 - 所有类型列表
display:
type: metric

Loading…
Cancel
Save