Victoria metrics data source panels not functioning properly for cloudwatch data source variable (Grafana v10.4.1)

Hello, as part of migration from Amazon Managed Grafana Legacy alerting (v9.4.7) to Unified Grafana Alerting (v10.4.1) in the company using an Ubuntu operating, it was observed that a dashboard using cloudwatch data source as variable seems to not be functional for panels using the variable platform in the victoria metrics queries in Grafana (v10.4.1) (myplatform data source in (was automatically obtained in the victoria metrics query in Grafana v9.4.7 that used the myplatform variable)

However, this dashboard seems to work as expected when Custom variable type is used and filled accordingly instead of Data Source: cloudwatch.

All the other dashboards using cloudwatc



h datasource as platform variable with cloudwatch related metrics panels seems to work as expected.

Is there any insight if it is expected that cloudwatch data source variable myplatform is not working for panel using Victoria metrics queries using this variable as source or is there any other solution that could be provided to fix this instead of using Custom Variable data source.

Generally, CloudWatch and Victoria Metrics are different metric storages with different query languages/functionalities/… So you shouldn’t expect that you just switch datasource and you will have the same functionality.

hello @jangaraj, to make the issue more clear:

In Grafana Legacy alerting (v9.4.7) the dashboards using cloudwatch data source for the $myplatform variable seem be functional for panels using the victoria metrics queries and include the $myplatform variable in these.

The variable platform in these queries seem to work as expected and results are displayed successfully ($myplatform data source automatically obtained in the victoria metrics query in Grafana v9.4.7 that used the $myplatform variable)

On the other hand, for Unified Grafana Alerting (v10.4.1) this seems to not be the case and when using Cloudwatch data source as platform variable $myplatform, the victoria metrics queries that make use of this variable do not display any results.

The dashboards with victoria metrics queries seem to only work when Custom variable type is used and filled accordingly instead of Data Source: cloudwatch.