Publishes raw metric data points to the Monitoring service.

POST {{baseUrlIngestion}}/metrics

Publishes raw metric data points to the Monitoring service. For more information about publishing metrics, see Publishing Custom Metrics. For important limits information, see Limits on Monitoring.

Per-call limits information follows.

  • Dimensions per metric group*. Maximum: 20. Minimum: 1.
  • Unique metric streams*. Maximum: 50.
  • Transactions Per Second (TPS) per-tenancy limit for this operation: 50.

*A metric group is the combination of a given metric, metric namespace, and tenancy for the purpose of determining limits. A dimension is a qualifier provided in a metric definition. A metric stream is an individual set of aggregated data for a metric, typically specific to a resource. For more information about metric-related concepts, see Monitoring Concepts.

The endpoints for this operation differ from other Monitoring operations. Replace the string telemetry with telemetry-ingestion in the endpoint, as in the following example:

https://telemetry-ingestion.eu-frankfurt-1.oraclecloud.com

Request Body

{"metricData"=>[{"compartmentId"=>"ocid1.compartment.oc1..exampleuniqueID", "datapoints"=>[{"timestamp"=>"1994-05-17T10:59:55.167Z", "value"=>-83252608.68908729, "count"=>-10002502}], "name"=>"veniam", "namespace"=>"fugiat Lorem Excepteur", "resourceGroup"=>"commodo sunt"}, {"compartmentId"=>"ocid1.compartment.oc1..exampleuniqueID", "datapoints"=>[{"timestamp"=>"1953-09-20T17:05:02.218Z", "value"=>-62004646.91934333, "count"=>42788267}], "name"=>"ut elit esse proident", "namespace"=>"est sunt cillum tempor", "resourceGroup"=>"ex et commodo enim eu"}], "batchAtomicity"=>"NON_ATOMIC"}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringCustomer part of the request identifier token. If you need to contact Oracle about a particular
request, please provide the complete request ID.
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"failedMetricsCount":72002088,"failedMetrics":[{"message":"dolore","metricData":{"compartmentId":"ocid1.compartment.oc1..exampleuniqueID","datapoints":[{"timestamp":"2000-01-08T07:21:32.073Z","value":-85208083.5588465,"count":-51496551}],"dimensions":{},"name":"est consectetur","namespace":"fugiat ipsum","metadata":{},"resourceGroup":"anim adipisicing velit irure"}},{"message":"eu incididunt","metricData":{"compartmentId":"ocid1.compartment.oc1..exampleuniqueID","datapoints":[{"timestamp":"1966-06-29T20:14:12.311Z","value":-94922550.57743683,"count":58273421}],"dimensions":{},"name":"nisi elit ex","namespace":"consequat ex","metadata":{},"resourceGroup":"officia id velit"}}]}