Can Cloudwatch dashboard variable depend on another dashboard variable

0

I have following schema {pageId, pageVersion, subPageId}. Each pageId+pageVersion has different set of subPageId. I need to plot graphs for each pageId and create a dropdown for pageVersion and subPageId to update the graph.

For pageVersion, I can use metric search to populate available values using hardcoded pageId.

 Search({namespace, pageId, pageVersion, subPageId}pageId=A)
and choose the resulting pageVersion dimension results.

For subPageId, I need to use hardcoded pageId and value chosen in the pageVersion dropdown to retrieve the metric results.

 Search({namespace, pageId, pageVersion, subPageId}pageId=A AND pageVersion=$pageVersion)

Is it possible to use the value of other variable in the metric search and update the graph dynamically ?

Jegan
asked 4 months ago397 views
1 Answer
0

Hi, apologies for the delay getting back to you. After checking, I have confirmed that it is not possible to use the value of another variable in the definition of a metric search to populate another variable.

When using a custom widget, you can refresh a custom widget and add additional context to the event as you trigger new refresh, which allows custom widgets to nest or cascade queries, but that only works for custom widgets, and doesn't allow you to control variables (which are useful to update standard widgets).

May I suggest that you ask for an enhancement if you need this feature? You can do so through support (preferably) or by sending feedback from the console.

profile pictureAWS
Jsc
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions