Skip to content
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

Question on Using Text Pattern to Filter Data #63

Open
Masahiroshi opened this issue Apr 9, 2024 · 0 comments
Open

Question on Using Text Pattern to Filter Data #63

Masahiroshi opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@Masahiroshi
Copy link

I've followed your tutorial on using the text pattern function to filter on specific values as well as using grafana variables.
I was wondering if the text pattern had the ability to filter across multiple parameters or is there a specific syntax to pass it multiple parameters?

For example,
I got an OR function to work by entering the following examples:
metric_type = discrete | metric_aggregate = mean

I get the equivalent of metric_type equals 'discrete' OR metric_aggregate equals 'mean'

And if I used a set of variables:
metric_type = ${metric_type:regex} | metric_aggregate = ${metric_aggregate:regex}

I get the equivalent of metric_type equals any values in variable $metric_type OR metric_aggregate equals any values in variable $metric_aggregate

But now I am looking for the ability to pass an AND function through:

Basically the same scenario stated above but with AND as the operator instead of OR.
The variable scenario is what I'm trying to accomplish:

metric_type = ${metric_type:regex} & metric_aggregate = ${metric_aggregate:regex}

I want the equivalent of metric_type equals any values in variable $metric_type and metric_aggregate equals any values in variable $metric_aggregate

I am not very fluent in regex so there may be a syntax that I am unfamiliar with that will satisfy my case.
But, I was wondering if the Text Pattern function had the ability to resolve multiple parameters by separating the statement with a specific character or if you could point me in the direction of a specific regex syntax that would represent the equivalent of an AND operator.

@mikhail-vl mikhail-vl self-assigned this Apr 18, 2024
@mikhail-vl mikhail-vl added the question Further information is requested label Apr 18, 2024
@mikhail-vl mikhail-vl added this to the Satellite 3.1.0 milestone Jul 10, 2024
@mikhail-vl mikhail-vl moved this to Backlog in Business Suite Jul 10, 2024
@mikhail-vl mikhail-vl assigned asimonok and unassigned mikhail-vl Jul 11, 2024
@mikhail-vl mikhail-vl moved this from Backlog to Ready in Business Suite Jul 11, 2024
@mikhail-vl mikhail-vl removed this from the Satellite 3.3.0 milestone Nov 18, 2024
@mikhail-vl mikhail-vl self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Ready
Development

No branches or pull requests

3 participants