Changing datasource programmatically

I think the OP is trying to get Grafana to use data source A if the timescale
for the query is within the last 30 days, and data source B if the timescale
is older than that.

Antony.

2 Likes