Relation between EKS cluster and namespace variables in Grafana

  • What Grafana version and what operating system are you using? Grafana version is Grafana v8.5.27 and Linux

  • What are you trying to achieve?

I am trying to create a relationship between the EKS Cluster and the namespace variables in a grafana dashboard.

  • How are you trying to achieve it?

We have created a Grafana dashboard with a custom cloudwatch data source. The datasource is appearing fine in Grafana under datasources option. We have taken two variables, one is EKS cluster and other is namespaces with in that cluster.

  • What happened?

When we are selecting the cluster variable drop down and changing the cluster names from one to another, we want the respective namespaces to get updated/change w.r.t to a particular cluster selection. Please note that we are using ContainerInsights namespace to get the POD related metrics in the dashboard panels.

  • What did you expect to happen?

We want to create a relation between the cluster and the namespace variable with our custom cloudwatch datasource.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

We haven’t received any Grafana UI errors. It is just that the namespace variable values should change/updated when the cluster selection changes in the dropdown.

  • Did you follow any online instructions? If so, what is the URL?
    We tried to find online instructions but so far none seemed to help.

Could you kindly suggest how to establish the relationship as stated above.