Creates or modifies a configuration set for export of monitoring data.

Note The monitoring data can be exported only to Log Service. We are working on the support for the export to other Services.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Name Type Required Example Description
Action String Yes PutExporterOutput

The operation that you want to perform. Set the value to PutExporterOutput.

ConfigJson String Yes { "endpoint": "", "project": "exporter", "logstore": "exporter", "ak": "LTAIp*******", "userId": "17754********", "as": "TxHwuJ8yAb3AU******" }

The configuration set of data export. It is a JsonObject string. The configuration set must include the following fields:

  • endpoint: the domain name of Log Service.
  • project: the Log Service project to which monitoring data is exported.
  • logstore: the Logstore to which monitoring data is exported.
  • ak: the AccessKey ID.
  • as: the AccessKey secret.
Desc String Yes Export CPU metrics

The description of the configuration set.

DestName String Yes exporterConfig

The name of the configuration set.

DestType String Yes sls

The service to which the monitoring data is exported.

Response parameters

Parameter Type Example Description
Code String 200

The status code.

Note The status code 200 indicates a successful request. Other status codes indicate a failed request.
Message String success

The returned message.

RequestId String 6A5F022D-AC7C-460E-94AE-B9E75083D027

The ID of the request.

Success Boolean true

Indicates whether the call was successful. Valid values:

  • true: indicates a successful call.
  • false: indicates a failed call.


Sample requests

http(s)://[Endpoint]/? Action=PutExporterOutput
&ConfigJson={ "endpoint": "",         "project": "exporter",         "logstore": "exporter",         "ak": "LTAIpY33Iakk****",         "userId": "177541323192****",         "as": "TxHwuJ8yAb3AULcnnyUxTGS0UM****"     }
&Desc=Export CPU metrics
&<Common request parameters>

Sample success responses

XML format


JSON format

	"Message": "success",
	"RequestId": "E5DC60DD-2FDE-488F-942C-424FA3E18BF8",
	"Code": "200",
	"Success": true

Error codes

For a list of error codes, visit the API Error Center.