Disable metric based on template variable

I’m using template variables to query tags from an sql source before passing these tags to OpenTSDB to query the actual time series data. The issue is, if the SQL source returns a tag that doesn’t exist in opentsdb for some reason, the whole panel doesn’t work. Is there a way to disable specific metrics if the tag returned doesn’t exist?

not currently, OpentSDB returns an error

Would it be possible to include a disable query method for such cases in the future? Something along the lines of if a query is dependent a template variable and a null is returned to disable that query.

Any updates here? I agree it would be great to have this capability. Similar post here: Is it possible to show/hide query based on template variable?

Nothing as far as i know maybe @torkel can comment.