I have been using (besides a lot of grafana multi-select vars) a grafana variable of type "textbox" to add ad-hoc filters to a dashboard, i.e. my queries look like ...