
# 多节点单指标支持指标信息 - QuerySingleMetricMultipleNodes
#### 功能介绍
多节点单指标支持指标信息。
#### 调试
您可以在[API Explorer](https://console.huaweicloud.com/apiexplorer/#/openapi/DAS/doc?api=ShowMetricNamesSupport)中调试该接口。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-das/das_01_0130.html)。
- 如果使用身份策略授权，需具备如下身份策略权限。
  
  | 授权项                   | 访问级别 | 资源类型（\*为必须） | 条件键 | 别名 | 依赖的授权项 |
  |:---|:---|:---|:---|:---|:---|
  | das::showCloudDBAInfo | read | -           | -   | -  | -      |
     
  
 
#### URI
GET /v3/{project_id}/metric-names/support
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                  |
|:---|:---|:---|:---|
| project_id | 是    | String | **参数解释**： 租户在某一Region下的项目ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-das/das_01_0036.html)。 **约束限制：** 不涉及。 **取值范围：** 只能由英文字母、数字组成，且长度为32个字符。 **默认取值：** 不涉及。 |
   
#### 请求参数
无。
#### 响应参数
**状态码： 200**
表2响应Body参数 
| 参数                   | 参数类型                                                                         | 描述                                               |
|:---|:---|:---|
| support_metric_names | Array of [表3 support_metric_names] objects | **参数解释：** 支持指标名称列表。 |
   
 表3support_metric_names 
| 参数             | 参数类型             | 描述                                                                                                                        |
|:---|:---|:---|
| datastore_type | Array of strings | **参数解释：** 数据库类型。                                                                             |
| metric_name    | String           | **参数解释：** 指标名称。 **取值范围：** 不涉及。    |
| unit           | String           | **参数解释：** 单位。 **取值范围：** 不涉及。      |
| description    | String           | **参数解释：** 描述。 **取值范围：** 不涉及。 |
   
#### 请求示例
```
GET https://das.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/metric-names/support
```
#### 响应示例
**状态码： 200**
Success.
```
{
  "support_metric_names": [
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "slow_queries",
      "unit": "count/min",
      "description": "Number of slow SQL statements"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "mem_usage",
      "unit": "%",
      "description": "memory usage"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "conn_active_count",
      "unit": "count",
      "description": "Number of active connections"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "disk_usage",
      "unit": "%",
      "description": "Disk Usage"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "conn_count",
      "unit": "count",
      "description": "Total Connections"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "data_disk_used_size",
      "unit": "GB",
      "description": "Disk Usage Size"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "cpu_usage",
      "unit": "%",
      "description": "CPU usage"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "binlog_usage",
      "unit": "%",
      "description": "Binlog disk usage"
    },
    {
      "datastore_type": [
        "MySQL"
      ],
      "metric_name": "replication_delay",
      "unit": "s",
      "description": "Replication latency"
    }
  ]
}
```
#### 状态码
| 状态码 | 描述            |
|:---|:---|
| 200 | Success.      |
| 400 | Client error. |
| 500 | Server error. |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-das/das_01_0035.html)。
