diff --git a/modules/otel-collector-components.adoc b/modules/otel-collector-components.adoc index 326f604ed806..1eba9e407863 100644 --- a/modules/otel-collector-components.adoc +++ b/modules/otel-collector-components.adoc @@ -720,7 +720,40 @@ config: | <2> The default exporter when the attribute value is not present in the table in the next section. <3> The table that defines which values are to be routed to which exporters. -You can optionally create an `attribute_source` configuratiion, which defines where to look for the attribute in `from_attribute`. The allowed value is `context` to search the context, which includes the HTTP headers, or `resource` to search the resource attributes. +You can optionally create an `attribute_source` configuration, which defines where to look for the attribute in `from_attribute`. The allowed value is `context` to search the context, which includes the HTTP headers, or `resource` to search the resource attributes. + +[id="cumulativetodelta-processor_{context}"] +=== Cumulative to Delta Processor + +This processor converts monotonic, cumulative-sum, and histogram metrics to monotonic delta metrics. + +You can filter metrics by using the `include:` or `exclude:` fields and specifying the `strict` or `regexp` metric name matching. + +This processor does not convert non-monotonic sums and exponential histograms. + +:FeatureName: The Cumulative to Delta Processor +include::snippets/technology-preview.adoc[] + +.Example of an OpenTelemetry Collector custom resource with an enabled Cumulative to Delta Processor +[source,yaml] +---- +config: | + processors: + cumulativetodelta: + include: # <1> + match_type: strict # <2> + metrics: # <3> + - + - + exclude: # <4> + match_type: regexp + metrics: + - "" +---- +<1> Optional: Configures which metrics to include. When omitted, all metrics, except for those listed in the `exclude` field, are converted to delta metrics. +<2> Defines a value provided in the `metrics` field as a `strict` exact match or `regexp` regular expression. +<3> Lists the metric names, which are exact matches or matches for regular expressions, of the metrics to be converted to delta metrics. If a metric matches both the `include` and `exclude` filters, the `exclude` filter takes precedence. +<4> Optional: Configures which metrics to exclude. When omitted, no metrics are excluded from conversion to delta metrics. [id="exporters_{context}"] == Exporters