Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion modules/otel-collector-components.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
- <metric_1_name>
- <metric_2_name>
exclude: # <4>
match_type: regexp
metrics:
- "<regular_expression_for_metric_names>"
----
<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
Expand Down