文档中心>API 中心>云压测>PTS相关接口>查询系统支持的指标

查询系统支持的指标

最近更新时间:2024-06-06 02:19:05

我的收藏

1. 接口描述

接口请求域名: pts.tencentcloudapi.com 。

查询系统支持的指标

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeAvailableMetrics。
Version String 公共参数,本接口取值:2021-07-28。
Region String 公共参数,本接口不需要传递此参数。

3. 输出参数

参数名称 类型 描述
MetricSet Array of MetricInfo 系统支持的所有指标
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询系统支持的指标

输入示例

POST / HTTP/1.1
Host: pts.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAvailableMetrics
<公共请求参数>

{}

输出示例

{
    "Response": {
        "MetricSet": [
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "请求RPS",
                        "Unit": "reqs/s"
                    },
                    {
                        "Aggregation": "MaxRateOverTime",
                        "Legend": "请求RPS峰值",
                        "Unit": "reqs/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "请求总数",
                        "Unit": "reqs"
                    },
                    {
                        "Aggregation": "ErrorPercentage",
                        "Legend": "请求失败率",
                        "Unit": "%"
                    },
                    {
                        "Aggregation": "ErrorPercentageByResult",
                        "Legend": "请求失败率(结果码)",
                        "Unit": "%"
                    }
                ],
                "Alias": "RequestsCount",
                "Description": "请求数量",
                "InnerMetric": false,
                "Metric": "pts_engine_req_total",
                "MetricType": "counter",
                "Unit": "reqs"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "响应时间Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Timings",
                        "Legend": "各阶段平均耗时分布",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "平均响应时间",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "响应时间P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "响应时间P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "响应时间P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "响应时间P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestDuration",
                "Description": "请求响应时间",
                "InnerMetric": false,
                "Metric": "pts_engine_req_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "检查点RPS",
                        "Unit": "checks/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "检查点总数",
                        "Unit": "checks"
                    },
                    {
                        "Aggregation": "ErrorPercentage",
                        "Legend": "检查点错误率",
                        "Unit": "%"
                    }
                ],
                "Alias": "ChecksCount",
                "Description": "检查点数量",
                "InnerMetric": false,
                "Metric": "pts_engine_checks_total",
                "MetricType": "counter",
                "Unit": "checks"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Gauge",
                        "Legend": "并发数",
                        "Unit": "VUs"
                    },
                    {
                        "Aggregation": "MaxOverTime",
                        "Legend": "并发数峰值",
                        "Unit": "VUs"
                    }
                ],
                "Alias": "NumberVirtualUsers",
                "Description": "并发用户数",
                "InnerMetric": false,
                "Metric": "pts_engine_num_vus",
                "MetricType": "gauge",
                "Unit": "VUs"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "发送速率",
                        "Unit": "bytes/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "发送总数",
                        "Unit": "bytes"
                    },
                    {
                        "Aggregation": "UsagePercentage",
                        "Legend": "出口带宽使用率",
                        "Unit": "%"
                    }
                ],
                "Alias": "SendBytesCount",
                "Description": "发送字节数",
                "InnerMetric": false,
                "Metric": "pts_engine_send_bytes_total",
                "MetricType": "counter",
                "Unit": "bytes"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "接收速率",
                        "Unit": "bytes/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "接收总数",
                        "Unit": "bytes"
                    },
                    {
                        "Aggregation": "UsagePercentage",
                        "Legend": "入口带宽使用率",
                        "Unit": "%"
                    }
                ],
                "Alias": "ReceiveBytesCount",
                "Description": "接收字节数",
                "InnerMetric": false,
                "Metric": "pts_engine_receive_bytes_total",
                "MetricType": "counter",
                "Unit": "bytes"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "场景执行TPS",
                        "Unit": "iters/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "场景执行总数",
                        "Unit": "iters"
                    }
                ],
                "Alias": "IterationsCount",
                "Description": "场景迭代数",
                "InnerMetric": false,
                "Metric": "pts_engine_iterations_total",
                "MetricType": "counter",
                "Unit": "iters"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "已发送请求RPS",
                        "Unit": "reqs/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "已发送请求总数",
                        "Unit": "reqs"
                    }
                ],
                "Alias": "RequestSentCount",
                "Description": "已发送请求数量",
                "InnerMetric": false,
                "Metric": "pts_engine_req_sent_total",
                "MetricType": "counter",
                "Unit": "reqs"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "场景执行Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "场景执行平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "场景执行P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "场景执行P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "场景执行P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "场景执行P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "IterationDuration",
                "Description": "场景执行耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_iterations_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "发送耗时Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "发送请求平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "发送耗时P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "发送耗时P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "发送耗时P95",
                        "Unit": ""
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "发送耗时P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestSendingDuration",
                "Description": "发送请求阶段耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_req_send_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "等待响应Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "等待响应平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "等待响应P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "等待响应P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "等待响应P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "等待响应P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestWaitingDuration",
                "Description": "等待响应阶段耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_req_wait_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "下载响应体Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "下载响应体平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "下载响应体P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "下载响应体P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "下载响应体P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "下载响应体P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestReceivingDuration",
                "Description": "下载响应体耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_req_receive_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "等待连接Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "等待连接平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "等待连接P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "等待连接P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "等待连接P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "等待连接P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestBlockingDuration",
                "Description": "等待连接耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_req_block_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "建立连接Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "建立连接平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "建立连接P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "建立连接P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "建立连接P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "建立连接P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestConnectingDuration",
                "Description": "建立连接耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_req_connect_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Percentiles",
                        "Legend": "TLS握手Percentiles",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "Avg",
                        "Legend": "TLS握手平均耗时",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P50",
                        "Legend": "TLS握手P50",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P90",
                        "Legend": "TLS握手P90",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P95",
                        "Legend": "TLS握手P95",
                        "Unit": "s"
                    },
                    {
                        "Aggregation": "P99",
                        "Legend": "TLS握手P99",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestHandshakingDuration",
                "Description": "TLS握手耗时",
                "InnerMetric": false,
                "Metric": "pts_engine_req_tls_handshake_duration_seconds",
                "MetricType": "histogram",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Max",
                        "Legend": "最大响应时间",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestMaxDuration",
                "Description": "请求最大响应时间",
                "InnerMetric": true,
                "Metric": "pts_engine_req_max_duration_seconds",
                "MetricType": "gauge",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Min",
                        "Legend": "最小响应时间",
                        "Unit": "s"
                    }
                ],
                "Alias": "RequestMinDuration",
                "Description": "请求最小响应时间",
                "InnerMetric": true,
                "Metric": "pts_engine_req_min_duration_seconds",
                "MetricType": "gauge",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "UsagePercentage",
                        "Legend": "CPU使用率",
                        "Unit": "%"
                    }
                ],
                "Alias": "ContainerCPUUsageCount",
                "Description": "施压机 CPU 使用量",
                "InnerMetric": true,
                "Metric": "container_cpu_usage_seconds_total",
                "MetricType": "counter",
                "Unit": "s"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "UsagePercentage",
                        "Legend": "内存使用率",
                        "Unit": "%"
                    }
                ],
                "Alias": "ContainerMemUsage",
                "Description": "施压机内存使用量",
                "InnerMetric": true,
                "Metric": "container_memory_usage_bytes",
                "MetricType": "gauge",
                "Unit": "bytes"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "发送速率",
                        "Unit": "bytes/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "发送总数",
                        "Unit": "bytes"
                    }
                ],
                "Alias": "ContainerNetworkSendCount",
                "Description": "施压机发送字节数",
                "InnerMetric": true,
                "Metric": "container_network_transmit_bytes_total",
                "MetricType": "counter",
                "Unit": "bytes"
            },
            {
                "Aggregations": [
                    {
                        "Aggregation": "Rate",
                        "Legend": "接收速率",
                        "Unit": "bytes/s"
                    },
                    {
                        "Aggregation": "Count",
                        "Legend": "接收总数",
                        "Unit": "bytes"
                    }
                ],
                "Alias": "ContainerNetworkReceiveCount",
                "Description": "施压机接收字节数",
                "InnerMetric": true,
                "Metric": "container_network_receive_bytes_total",
                "MetricType": "counter",
                "Unit": "bytes"
            }
        ],
        "RequestId": "50233a27-a7c0-4e3e-b598-bf213373aa99"
    }
}

5. 开发者资源

腾讯云 API 平台

腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

API Inspector

用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码