Skip to content

Commit 7a9605e

Browse files
pavolloffayopenshift-cherrypick-robot
authored andcommitted
OBSDOCS-1775: Cumulative-to-Delta Processor as a sidecar
TRACING-5164 | RHOSDT 3.6, OTEL deltatemporality metrics Signed-off-by: Pavol Loffay <[email protected]>
1 parent 655b80a commit 7a9605e

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

observability/otel/otel-collector/otel-collector-processors.adoc

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,12 @@ Optionally, you can create an `attribute_source` configuration, which defines wh
414414
[id="cumulativetodelta-processor_{context}"]
415415
== Cumulative-to-Delta Processor
416416

417-
The Cumulative-to-Delta Processor processor converts monotonic, cumulative-sum, and histogram metrics to monotonic delta metrics.
417+
The Cumulative-to-Delta Processor converts monotonic, cumulative-sum, and histogram metrics to monotonic delta metrics.
418418

419419
You can filter metrics by using the `include:` or `exclude:` fields and specifying the `strict` or `regexp` metric name matching.
420420

421+
Because this processor calculates delta by storing the previous value of a metric, you must set up the metric source to send the metric data to a single stateful Collector instance rather than a deployment of multiple Collectors.
422+
421423
This processor does not convert non-monotonic sums and exponential histograms.
422424

423425
:FeatureName: The Cumulative-to-Delta Processor
@@ -427,24 +429,26 @@ include::snippets/technology-preview.adoc[]
427429
[source,yaml]
428430
----
429431
# ...
430-
config:
431-
processors:
432-
cumulativetodelta:
433-
include: # <1>
434-
match_type: strict # <2>
435-
metrics: # <3>
436-
- <metric_1_name>
437-
- <metric_2_name>
438-
exclude: # <4>
439-
match_type: regexp
440-
metrics:
441-
- "<regular_expression_for_metric_names>"
442-
# ...
443-
----
444-
<1> Optional: Configures which metrics to include. When omitted, all metrics, except for those listed in the `exclude` field, are converted to delta metrics.
445-
<2> Defines a value provided in the `metrics` field as a `strict` exact match or `regexp` regular expression.
446-
<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.
447-
<4> Optional: Configures which metrics to exclude. When omitted, no metrics are excluded from conversion to delta metrics.
432+
mode: sidecar # <1>
433+
config:
434+
processors:
435+
cumulativetodelta:
436+
include: # <2>
437+
match_type: strict # <3>
438+
metrics: # <4>
439+
- <metric_1_name>
440+
- <metric_2_name>
441+
exclude: # <5>
442+
match_type: regexp
443+
metrics:
444+
- "<regular_expression_for_metric_names>"
445+
# ...
446+
----
447+
<1> To tie the Collector's lifecycle to the metric source, you can run the Collector as a sidecar to the application that emits the cumulative temporality metrics.
448+
<2> Optional: You can limit which metrics the processor converts by explicitly defining which metrics you want converted in this stanza. If you omit this field, the processor converts all metrics, except the metrics that are listed in the `exclude` field.
449+
<3> Defines the value that you provided in the `metrics` field as an exact match by using the `strict` parameter or a regular expression by using the `regex` parameter.
450+
<4> Lists the names of the metrics that you want to convert. The processor converts exact matches or matches for regular expressions. If a metric matches both the `include` and `exclude` filters, the `exclude` filter takes precedence.
451+
<5> Optional: You can exclude certain metrics from conversion by explicitly defining them here.
448452

449453
[id="groupbyattrsprocessor-processor_{context}"]
450454
== Group-by-Attributes Processor

0 commit comments

Comments
 (0)