Skip to content

Allow scaling value after regex extract #1410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
llamafilm opened this issue Apr 15, 2025 · 1 comment
Open

Allow scaling value after regex extract #1410

llamafilm opened this issue Apr 15, 2025 · 1 comment
Labels

Comments

@llamafilm
Copy link

llamafilm commented Apr 15, 2025

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.

@SuperQ SuperQ added the bug label Apr 15, 2025
@SuperQ
Copy link
Member

SuperQ commented Apr 15, 2025

That sounds like a bug in the ordering of the data processing. Should be fixable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants