All Products
Search
Document Center

Managed Service for Prometheus:AddPrometheusInstance

Last Updated:May 09, 2024

Creates a Prometheus instance for Remote Write.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object
Datastring

The returned struct. { "RequestId": the request ID, "Data": "{ "clusterType": the cluster type, "remoteWriteUrl": the public URL for remote write, "internetGrafanaUrl": the internal URL for Grafana, "authToken": indicates whether authentication is enabled, "internetPushGatewayUrl": the internal URL for Pushgateway, "clusterId": the cluster ID, "internetRemoteReadUrl": the internal URL for remote read, "remoteReadUrl": the public URL for remote read, "grafanaUrl": the public URL for Grafana, "pushGatewayUrl": the public URL for Pushgateway, "internetRemoteWriteUrl": the internal URL for remote write}" }

{ "RequestId": "1293091C-54AD-50FE-B787-E314B94B35AB", "Data": "{ "clusterType":"remote-write-prometheus", "remoteWriteUrl":"http://cn-hu/api/v3/write", "internetGrafanaUrl":"https://cn-hanga/cn-hangzhou", "authToken":false, "internetPushGatewayUrl":"https://cangzhou/api/v2", "clusterId":"vrju1lj3sa|123456", "internetRemoteReadUrl":"https://cn-hangzh67cn-hangzhou/api/v1/read", "remoteReadUrl":"http://cn-hanou/api/v1/read", "grafanaUrl":"http://cn-angzhou", "pushGatewayUrl":"htt1lj3sa/cn-hangzhou/api/v2", "internetRemoteWriteUrl":"httpsngzhou/api/v3/write"}" }
RequestIdstring

The request ID.

9319A57D-2D9E-472A-B69B-CF3CD16D****

Examples

Sample success responses

JSONformat

{
  "Data": "{\n  \"RequestId\": \"1293091C-54AD-50FE-B787-E314B94B35AB\",\n  \"Data\": \"{\n  \"clusterType\":\"remote-write-prometheus\",\n  \"remoteWriteUrl\":\"http://cn-hu/api/v3/write\",\n  \"internetGrafanaUrl\":\"https://cn-hanga/cn-hangzhou\",\n  \"authToken\":false,\n  \"internetPushGatewayUrl\":\"https://cangzhou/api/v2\",\n  \"clusterId\":\"vrju1lj3sa|123456\",\n  \"internetRemoteReadUrl\":\"https://cn-hangzh67cn-hangzhou/api/v1/read\",\n  \"remoteReadUrl\":\"http://cn-hanou/api/v1/read\",\n  \"grafanaUrl\":\"http://cn-angzhou\",\n  \"pushGatewayUrl\":\"htt1lj3sa/cn-hangzhou/api/v2\",\n  \"internetRemoteWriteUrl\":\"httpsngzhou/api/v3/write\"}\"\n}",
  "RequestId": "9319A57D-2D9E-472A-B69B-CF3CD16D****",
  "Code": 200,
  "Message": "success",
  "Success": true
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-03-23The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.
2022-07-29Add Operationsee changesets