Uploaded image for project: 'Observability and Data Analysis Program'
  1. Observability and Data Analysis Program
  2. OBSDA-792

Add metrics transform processor to the OTel collector

    XMLWordPrintable

Details

    • Feature
    • Resolution: Unresolved
    • Undefined
    • rhosdt-3.3
    • None
    • PM Tracing
    • False
    • None
    • False
    • Not Selected
    • 0
    • 0
    • 0% 0%
    • 0

    Description

      Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor

      Functionality

      The metrics transform processor can be used to rename metrics, and add, rename or delete label keys and values. It can also be used to perform scaling and aggregations on metrics across labels or label values. The complete list of supported operations that can be applied to one or more metrics is provided in the below table.

      Operation Example (based on metric system.cpu.usage)
      Rename metrics Rename to system.cpu.usage_time
      Add labels Add new label identifier with value 1 to all points
      Rename label keys Rename label state to cpu_state
      Rename label values For label state, rename value idle to -
      Delete data points Delete all points where label state has value idle
      Toggle data type Change from int data points to double data points
      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

      Scope

      Tech Preview, including tests and documentation

      Attachments

        Activity

          People

            rh-ee-jgomezse Jose Gomez-Selles
            rh-ee-jgomezse Jose Gomez-Selles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: