Skip to content

Allow scaling value after regex extract #1410

@llamafilm

Description

@llamafilm

After using regex_extract to turn a string into a number, sometimes that number needs to be scaled. For example, I have a metric like this:

cp850FaderLevel{cp850FaderLevel="0x3730"} 1

I use this config:

    overrides:
      cp850FaderLevel:
        type: DisplayString
        regex_extracts:
          '':
          - regex: '(.*)'
            value: '$1'
        scale: 0.1

The scale is ignored, so the result is this:

cp850FaderLevel 70

I use version 0.28.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions