Skip to main content
POST
/
api
/
v1
/
config
/
otel-metrics-ingestion
cURL
curl --request POST \
  --url https://tenant.chronosphere.io/api/v1/config/otel-metrics-ingestion \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dry_run": true,
  "otel_metrics_ingestion": {
    "resource_attributes": {
      "exclude_keys": [
        "<string>"
      ],
      "filter_mode": "APPEND_DEFAULT_EXCLUDE_KEYS",
      "flatten_mode": "MERGE",
      "generate_target_info": true
    }
  }
}
'
{
  "otel_metrics_ingestion": {
    "created_at": "2023-11-07T05:31:56Z",
    "resource_attributes": {
      "exclude_keys": [
        "<string>"
      ],
      "filter_mode": "APPEND_DEFAULT_EXCLUDE_KEYS",
      "flatten_mode": "MERGE",
      "generate_target_info": true
    },
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

If true, validates the specified configuration without creating the OtelMetricsIngestion. If the specified configuration is valid, the endpoint returns a partial response without the OtelMetricsIngestion. If the specified configuration is invalid, the endpoint returns an error.

otel_metrics_ingestion
object

The OtelMetricsIngestion to create.

Response

A successful response containing the created OtelMetricsIngestion.

otel_metrics_ingestion
object