# Why are my OpenTelemetry metrics not ingested

**URL:** <https://community.dynatrace.com/t/why-are-my-opentelemetry-metrics-not-ingested/50138>\
**Category:** Troubleshooting\
**Tags:** dynatrace-managed, opentelemetry\
**Created:** [February 7, 2025, 7:08am UTC](https://community.dynatrace.com/t/why-are-my-opentelemetry-metrics-not-ingested/50138 "2025-02-07T07:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaograssi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joaograssi/32/38779_2.png) [@joaograssi](https://community.dynatrace.com/u/joaograssi)\
**Post date:** [February 7, 2025, 7:08am UTC](https://community.dynatrace.com/t/why-are-my-opentelemetry-metrics-not-ingested/50138/1 "2025-02-07T07:08:07Z")

</div>

# Problem

When sending OpenTelemetry metrics to Dynatrace several validations are performed on the data which may result in it not being ingested. Here are the main causes for metric rejection:

- Metrics with cumulative aggregation temporality
- Too many attributes on a metric
- Too many metrics in the payload
- Unsupported metric types
- Invalid characters in metric name
- Invalid metric values
- Wrong export URL
- Missing or malformed API token
- Too large OTLP message

# Troubleshooting Steps

You can use a combination of the HTTP response body and Dynatrace self-monitoring metrics to aid you in finding out what is wrong and how you can address it. In the response body, look out for messages such this:

```markup
The following issues were encountered while ingesting OTLP metrics:

Errors:

Unsupported metric: 'my.cumulative.counter' - Reason: UNSUPPORTED_METRIC_TYPE_MONOTONIC_CUMULATIVE_SUM

Unsupported metric: 'my.summary' - Reason: UNSUPPORTED_METRIC_TYPE_SUMMARY

Histogram metric dropped. key: 'my.histogram' details: 'Histogram boundaries are not sorted' - Reason: HISTOGRAM_BUCKET_INVALID

Metric dropped: 'my.metric.many.attributes' - Reason: DIMENSION_COUNT_EXCEEDED

```

For an overview of what is being rejected and why, you can use the OTLP datapoints rejected self-monitoring metric: (dsfm.active\_gate.metrics.ingest.otlp.datapoints.rejected ) and split by reason.This will show you all the reasons why metrics are being rejected.

Note that in this view it is not possible to see the metric names.

# 

 ![Rejected metrics, split by reason](https://global.discourse-cdn.com/dynatrace/original/3X/f/1/f1fcbc4d2608db8c7e366246ff16dffe2d46bd0c.png)

For API related errors, such as API token issues or too large requests, you can use the following self-monitoring metrics, both filtered by operation=POST /otlp/v1/metrics and split by response\_codes:

- dsfm.active\_gate.rest.request\_count
- dsfm.active\_gate.rest.request\_size

# 

 ![Count of OTLP metric requests, split by response code](https://global.discourse-cdn.com/dynatrace/original/2X/4/409e1396a1125073e780a12aba0c4a4091e7abb7.png)

# 

 ![Size of OTLP metric requests, split by response code](https://global.discourse-cdn.com/dynatrace/original/3X/7/1/7135659c514208bb549a8a5736c3289d6de7034a.png)

Tip: You can also additionally split by user\_agent to help in finding out from which type of client the requests are coming from (e.g., OTel collector, OTel Java SDK).

# **Resolution**

The combination of error messages included in the HTTP response and the self-monitoring metrics should give you useful information to help find out what is wrong and how to fix it.

For example, for errors mentioning “Cumulative”, you need to [change the aggregation temporality](https://community.dynatrace.com/topic/269292) to “delta”. For errors such as DIMENSION\_COUNT\_EXCEEDED you need to adapt the metric generation to make sure the number of recorded attributes stay [under the limits](https://docs.dynatrace.com/docs/shortlink/opentelemetry-metrics-limitations).

For request too large errors, one good strategy is to use the [batch processor in the OpenTelemetry collector](https://docs.dynatrace.com/docs/ingest-from/opentelemetry/collector/use-cases/batch), to split metrics into smaller batches.

# Further Support

If you have any further questions or encounter any issues not listed above, please feel free to contact our&nbsp;[support team](https://support.dynatrace.com/).
