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)
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.