Skip to content

'preserveTags' flag for divideSeries, divideSeriesLists, asPercent #2639

@shanson7

Description

@shanson7

Is your feature request related to a problem? Please describe.

Several functions (at least divideSeries, divideSeriesLists, and asPercent) trash the tags of the inputs. This makes it difficult to use features in grafana that require tags (e.g. "Labels to Fields" transformation) or other functions like groupByTags post division.

It would be nice to have an option to preserve tags where the dividend and divisor have the same values.

Describe the solution you'd like

Add a flag (default to false for backwards compatibility) to preserve overlapping tags

Describe alternatives you've considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions