What's new from Grafana Labsbreadcrumb arrow Quickly toggle between values in queries with the Switch variable type
What's new from Grafana Labs
What's new from Grafana Labs
Grafana Cloud Generally Available Open source Enterprise Generally Available Dashboards and visualizations
Release date: 2025-10-30

Quickly toggle between values in queries with the Switch variable type

The new Switch template variable type replaces cumbersome drop-down menus with an intuitive toggle interface. Configure any two values—true/false, 1/0, yes/no, or custom pairs—and control boolean states across your dashboard with a single click. Perfect for toggling debug modes, filters, or any conditional logic.

To get started, add a new variable of type Switch in your dashboard settings. For details, refer to add a switch variable.

Switch variable type

Related What's new posts