Alex Egorov
Alex Egorov

Reputation: 21

Create dependencies between variables in Grafana

I have Grafana dashboard which shows logs. I created some variables variables

How can I define the dependences between them in order to when I select one namespace in Namespace area (variable), Grafana shows only containers in selected namespace (which satisfy only selected namespace)

Namespace All containers

Upvotes: 1

Views: 1749

Answers (1)

knetsi
knetsi

Reputation: 1631

You can find some relevant log and change the label_values to something like this:

label_values(kube_pod_container_info{namespace="$namespace"}, container)

the above line will make the container filter to depend on the namespace

Upvotes: 1

Related Questions