0

I'm trying to set up two custom variables in Grafana, GCP and project, with a dependent relationship between them.

Here is the setup: The first variable is GCP, which is a custom variable with key-value pairs like:

no : (space used in query)

yes : gcp-dev (gcp-dev used in query)

The second variable is project, which contains a list of 5 projects:

A,B,C,D,E

The mapping of projects is as follows: Projects B and E are Kafka projects (GCP = no)

Projects A, C, and D are GCP projects (GCP = yes)

project variable gcp variable

I want the project variable to dynamically filter based on the selected value of the GCP variable:

If GCP = no (i.e., Kafka), then only show B and E in the project dropdown.

If GCP = yes (i.e., gcp-dev), then only show A, C, and D.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.