Templating in a mashup

I have two data sources Influxdb and ambari-metrics. I want to create a template dasboard that uses both sources and i need to set a cluster variable for influxdb data source. Which works properly in my other influxdb only dashboards. the problem is that when i define the template variable I get no data from my ambari-metrics data source. If i delete the template variable they all come back… weird.

Maybe the ambari-metrics data source does not support templating?