monitoring.custom-metrics.putPublish datapoints to custom metrics (CloudWatch PutMetricData)
Datums are checked one by one: the valid ones are stored and each refused one is listed with its index and reason (400 only when none was stored). Values are aggregated per minute. Active series are limited by the organization’s quota monitoring.custom-metric-series (1000 by default, 100 on a trial; a quota can be raised), and each web server takes at most 20000 datums a minute. Kept 15 days per minute, 15 months per hour. OTLP/HTTP (JSON) is accepted at /monitoring/api/otlp/v1/metrics.
Request syntax
POST /monitoring/api/custom-metrics
{
"namespace": "string",
"metricData": "array of json"
}Request body
namespaceRequiredstring
Letters, digits and . _ / # : -, up to 255; DCLOUD/, EWS/ and AWS/ are reserved
metricDataRequiredarray of json
1–1000 datums
Response
200 with { accepted, rejected } when at least one datum was stored: accepted counts them, rejected lists each refused datum as { index, reason }. 400 with the same rejected list when none was; 429 past 20000 datums a minute for the organization.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow monitoring:PutMetricData on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud monitoring custom-metrics put --namespace example --metric-data '["example"]'curl -X POST "https://console.platform.deutschecloud.app/monitoring/api/custom-metrics" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"namespace":"example","metricData":["example"]}'Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_monitoring_custom-metrics_put.