diff --git a/.chloggen/metric-convert-to-snake-case.yaml b/.chloggen/metric-convert-to-snake-case.yaml new file mode 100755 index 0000000000000..b55a2a477dba6 --- /dev/null +++ b/.chloggen/metric-convert-to-snake-case.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: processor/metricstransformprocessor + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Added metric transform operation (under update type) to convert camel case metrics to snake case + +# One or more tracking issues related to the change +issues: [15379] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/processor/metricstransformprocessor/README.md b/processor/metricstransformprocessor/README.md index 9ac237e92bfb0..85d90089be446 100644 --- a/processor/metricstransformprocessor/README.md +++ b/processor/metricstransformprocessor/README.md @@ -31,6 +31,7 @@ or clients). | Scale value | Multiply values by 1000 to convert from seconds to milliseconds | | Aggregate across label sets | Retain only the label `state`, average all points with the same value for this label | | Aggregate across label values | For label `state`, sum points where the value is `user` or `system` into `used = user + system` | +| Convert camel to snake case | For example `SystemCPUUsage`, rename to `system.cpu.usage` | In addition to the above: @@ -87,7 +88,7 @@ processors: # operations contain a list of operations that will be performed on the resulting metric(s) operations: # action defines the type of operation that will be performed, see examples below for more details - - action: {add_label, update_label, delete_label_value, toggle_scalar_data_type, experimental_scale_value, aggregate_labels, aggregate_label_values} + - action: {add_label, update_label, delete_label_value, toggle_scalar_data_type, experimental_scale_value, aggregate_labels, aggregate_label_values, convert_case} # label specifies the label to operate on label: