You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .chloggen/signalfx_exporter_remove_translation_rules.yaml
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,43 @@ issues: [35332]
16
16
# These lines will be padded with 2 spaces and then inserted directly into the document.
17
17
# Use pipe (|) for multiline entries.
18
18
subtext: |
19
-
Please use the processors to handle desired metric transformations instead.
19
+
Please use the processors to handle desired metric transformations instead. Find guidance and examples below for each transformation type.
20
+
- rename_dimension_keys - Use the metricstransform processor's rename label functionality.
21
+
- Example for one metric: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#rename-labels
22
+
- Example for multiple/all metrics: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#rename-labels-for-multiple-metrics
23
+
24
+
- rename_metrics - Use the metrictransform processor's rename metric functionality instead.
25
+
- Example for one metric: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#rename-metric
26
+
- Example for multiple metrics: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#rename-multiple-metrics-using-substitution
27
+
28
+
- multiply_int. divide_int, multiply_float - Use the metrictransform processor's scale value functionality instead.
- Int converter: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/ottlfuncs#int
34
+
35
+
- copy_metrics - Use the metricstransform processor's insert functionality instead.
36
+
- Example for copying all datapoints to a new metric: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#create-a-new-metric-from-an-existing-metric
37
+
- Example for conditionally copying datapoints: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#create-a-new-metric-from-an-existing-metric-with-matching-label-values
38
+
39
+
- split_metric - Use the metricstransform processor's insert functionality to create the new metrics instead. Use the filter processor to drop the original metrics that are no longer required.
40
+
- Refer to the replacement guidance for the `copy_metrics` and `drop_metrics` translation rules.
41
+
42
+
- aggregate_metric - Use the transform processor's `aggregate_on_attributes` function with the metric context instead.
- drop_metrics - Use the filter processor to drop metrics by name instead.
48
+
- Example here for dropping metrics by name and value: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/filterprocessor#dropping-specific-metric-and-value
49
+
50
+
- delta_metric - Use the cumulativetodelta processor to create delta metrics from cumulative metrics instead.
51
+
- Example here for specifying which metrics to create new delta metrics for: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/cumulativetodeltaprocessor#examples
52
+
53
+
- drop_dimensions - Use the transform processor's delete_keys function with the datapoint context to drop metric attributes instead.
54
+
- Example and description here: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/ottlfuncs#delete_key
55
+
- Dropping attributes conditionally, based upon the metric name or dimension value, can be done using a "where" clause with the given example.
20
56
21
57
# If your change doesn't affect end users or the exported elements of any package,
22
58
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
0 commit comments