DescribeMetricMetaList

Updated at:

Queries metadata.

Operation description

Queries the details of monitoring metrics metadata in CloudMonitor.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cms:DescribeMetricMetaList

none

*All Resource

*

None None

Request syntax

GET /describe-metric-meta-list HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

namespace

string

No

The namespace used to distinguish cloud services.

acs_ecs_dashboard

metaFormat

string

No

The source of metadata. Valid values: CMS for CloudMonitor Basic monitoring metrics, and PROM_BASIC for basic monitoring metrics of Managed Service for Prometheus.

Valid values:

  • PROM_BASIC :

    Basic metrics of Managed Service for Prometheus.

  • CMS :

    CloudMonitor Basic monitoring metrics.

CMS

metricName

string

No

The name of the metric.

CPUUtilization

labels

array<object>

No

Filters resources by label. Existing labels are described as follows:

  • metricCategory: the category description of the metric.

  • alertEnable: specifies whether alerting is required.

  • alertUnit: the recommended alert unit.

  • unitFactor: the unit conversion factor.

  • minAlertPeriod: the minimum alert period.

  • productCategory: the cloud service category.

object

No

The label key.

name

string

No

The name of the label.

productCategory

value

string

No

The value of the label.

ecs

pageNumber

integer

No

The page number. Default value: 1.

1

pageSize

integer

No

The number of entries per page. Default value: 2000.

2000

keywords

string

No

The keyword.

Instance theory

aliyunLang

string

No

The language.

zh

category

string

No

The category.

ecs

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

Id of the request

264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC

totalCount

integer

The total number of entries.

6370

pageNumber

integer

The page number. Default value: 1.

1

pageSize

integer

The number of entries per page.

2000

resources

array<object>

The configuration information of the metrics for the resource.

array<object>

The configuration information of the metrics for the resource.

namespace

string

The namespace.

acs_ecs_dashboard

metricName

string

The name of the metric.

CPUUtilization

description

string

The description.

ECS CPU Utilization

unit

string

The unit.

%

labels

object

The CloudMonitor labels. This parameter is returned only when metaFormat is set to CMS.

{"DefaultTemplate":"false","alertDefault":"80","alertUnit":"%","is_alarm":"true","metricCategory":"instanceId","minAlertPeriod":"60","productCategory":"ecs","unitFactor":"1"}

string

The content of the CloudMonitor label.

{ "DefaultTemplate": "false", "alertDefault": "80", "alertUnit": "%", "is_alarm": "true", "metricCategory": "instanceId", "minAlertPeriod": "60", "productCategory": "ecs", "unitFactor": "1" }

dimensions

array

The resource filtering dimensions of CloudMonitor Basic.

string

The resource filtering dimensions of CloudMonitor Basic.

["userId","instanceId"]

type

string

The type of the metric.

Gauge

dimensionDescription

array<object>

The description of the dimension information.

object

The description of the dimension information.

name

string

The name.

user_id

statistics

string

The statistical method of the metric. Valid values:

  • Maximum: the maximum value.

  • Minimum: the minimum value.

  • Average: the average value.

Maximum

periods

string

The period.

60

metaFormat

string

The source of metadata. Valid values: CMS for CloudMonitor Basic monitoring metrics, and PROM_BASIC for basic monitoring metrics of Managed Service for Prometheus.

Example value: CMS Valid values: CMS PROM_BASIC

PROM_BASIC

Examples

Success response

JSON format

{
  "requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC",
  "totalCount": 6370,
  "pageNumber": 1,
  "pageSize": 2000,
  "resources": [
    {
      "namespace": "acs_ecs_dashboard",
      "metricName": "CPUUtilization",
      "description": "ECS CPU Utilization",
      "unit": "%",
      "labels": {
        "key": "{\n         \"DefaultTemplate\": \"false\",\n          \"alertDefault\": \"80\",\n          \"alertUnit\": \"%\",\n          \"is_alarm\": \"true\",\n          \"metricCategory\": \"instanceId\",\n          \"minAlertPeriod\": \"60\",\n          \"productCategory\": \"ecs\",\n          \"unitFactor\": \"1\"\n}"
      },
      "dimensions": [
        "[\"userId\",\"instanceId\"]"
      ],
      "type": "Gauge",
      "dimensionDescription": [
        {
          "name": "user_id"
        }
      ],
      "statistics": "Maximum",
      "periods": "60",
      "metaFormat": "PROM_BASIC"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.