All Products
Search
Document Center

Managed Service for Prometheus:EnableMetric

Last Updated:Aug 28, 2026

Enables a deprecated metric.

Note

This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The cluster ID.

ccfa5e34a5c1f4ce6b916a40a12151d88

RegionId

string

Yes

The region ID.

cn-hangzhou

DropMetric

string

No

The metric name.

kube_pod_container_status_ready

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The request ID.

0231DA4B-3D11-5433-9376-3B5B46C7228D

Success

boolean

Whether the request was successful.

true

Data

string

The response data.

success

Code

integer

The HTTP status code. 200 indicates success.

200

Message

string

The response message.

success

Examples

Success response

JSON format

{
  "RequestId": "0231DA4B-3D11-5433-9376-3B5B46C7228D",
  "Success": true,
  "Data": "success",
  "Code": 200,
  "Message": "success"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.