---
title: "POST /api/v1/config/otel-metrics-ingestion"
method: POST
path: "/api/v1/config/otel-metrics-ingestion"
tags: ["OtelMetricsIngestion"]
---

# POST /api/v1/config/otel-metrics-ingestion

`POST /api/v1/config/otel-metrics-ingestion`

## Request body

- Configv1CreateOtelMetricsIngestionRequest
  - `otel_metrics_ingestion` Configv1OtelMetricsIngestion
    - `created_at` string, date-time — Timestamp of when the OtelMetricsIngestion was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.
    - `resource_attributes` OtelMetricsIngestionResourceAttributes
      - `flatten_mode` 'MERGE' | 'OVERWRITE' | 'IGNORE'
      - `filter_mode` 'APPEND_DEFAULT_EXCLUDE_KEYS' | 'CUSTOM_EXCLUDE_KEYS'
      - `exclude_keys` string[] — Do not copy any resource attribute whose key exactly matches one of the strings in this list.
      - `generate_target_info` boolean — Generate a target_info time series with labels derived from resource attributes. The filter_mode and exclude_keys settings apply in the same way as for the "flatten" operation. The default is false.
  - `dry_run` boolean — If true, the OtelMetricsIngestion isn't created, and no response OtelMetricsIngestion will be returned. The response will return an error if the given OtelMetricsIngestion is invalid.

## Response `200`

A successful response containing the created OtelMetricsIngestion.

- Configv1CreateOtelMetricsIngestionResponse
  - `otel_metrics_ingestion` Configv1OtelMetricsIngestion
    - `created_at` string, date-time — Timestamp of when the OtelMetricsIngestion was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.
    - `resource_attributes` OtelMetricsIngestionResourceAttributes
      - `flatten_mode` 'MERGE' | 'OVERWRITE' | 'IGNORE'
      - `filter_mode` 'APPEND_DEFAULT_EXCLUDE_KEYS' | 'CUSTOM_EXCLUDE_KEYS'
      - `exclude_keys` string[] — Do not copy any resource attribute whose key exactly matches one of the strings in this list.
      - `generate_target_info` boolean — Generate a target_info time series with labels derived from resource attributes. The filter_mode and exclude_keys settings apply in the same way as for the "flatten" operation. The default is false.

## Other responses

- `400` — Cannot create the OtelMetricsIngestion because the request is invalid.
- `409` — Cannot create the OtelMetricsIngestion because there is a conflict with an existing OtelMetricsIngestion.
- `500` — An unexpected error response.
- `default` — An undefined error response.

---

[API](https://skmtc.net/chronosphere/apis/config-v1-api.md) · [All operations](https://skmtc.net/chronosphere/apis/config-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chronosphere/config-v1-api/revisions/530951bd2ccf/schema)
